]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] dcdbas: convert to the new platform device interface
authorDmitry Torokhov <dtor_core@ameritech.net>
Wed, 22 Mar 2006 08:07:56 +0000 (00:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:53:56 +0000 (07:53 -0800)
commit6a4e193de1014ce15a9eaf3d6bb05d5ae828c301
treea3bd942d1e2a25529ecae24bdfb16f28a89fddf2
parentef12a644f8a563fcb5d992dbb1351632987d32ba
[PATCH] dcdbas: convert to the new platform device interface

Do not use platform_device_register_simple() as it is going away, define
dcdbas_driver and implement ->probe() and ->remove() functions so manual
binding and unbinding will work with this driver.

Also switch to using attribute_group when creating sysfs attributes and
make sure to check and handle errors; explicitely remove attributes when
detaching driver.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/firmware/dcdbas.c