[Suggestion] drivers: powercap: 'dev_attrs' has already removed from 'struct class'

Chen Gang gang.chen at asianux.com
Thu Oct 31 13:18:37 EST 2013


Hello Maintainers

It is removed by "bcc8edb driver core: remove dev_attrs from struct
class" in Oct 5 2013. But "75d2364 PowerCap: Add class driver" still
use it in Oct 11 2013.

The related error (for powerpc with allmodconfig):

  CC      drivers/powercap/powercap_sys.o
drivers/powercap/powercap_sys.c:484:2: error: unknown field ‘dev_attrs’ specified in initializer
drivers/powercap/powercap_sys.c:484:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/powercap/powercap_sys.c:484:2: warning: (near initialization for ‘powercap_class.suspend’) [enabled by default]


Please give a check thanks.

Thanks.
-- 
Chen Gang


More information about the Linuxppc-dev mailing list