[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)
commita7f3ea728b36aff520dff1611b3ce10cff46d8fe
treea3bd942d1e2a25529ecae24bdfb16f28a89fddf2
parentd0497614e0bd54f113041966532035edba463f8e
[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