From: Dmitry Torokhov Date: Wed, 22 Mar 2006 08:07:56 +0000 (-0800) Subject: [PATCH] dcdbas: convert to the new platform device interface X-Git-Tag: v2.6.17-rc1~1129^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7f3ea728b36aff520dff1611b3ce10cff46d8fe;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed