From: Dmitry Torokhov Date: Fri, 4 Dec 2009 08:36:15 +0000 (-0800) Subject: tc1100-wmi - add error handling for device registration X-Git-Tag: v2.6.33-rc2~3^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9634a627b330fcc7cdca25df4d7853ca9c7745de;p=pandora-kernel.git tc1100-wmi - add error handling for device registration Any of the platform API functions can fail; driver should be prepared to handle such failures. Also: - changed to platform_driver_probe() since the device is created right there with the driver; - added __devexit annotation to remove method; - fixed memory leak on module unload - named platform_device_del() is not enough to free platform device, need platform_device_unregister(). Signed-off-by: Dmitry Torokhov Signed-off-by: Len Brown --- Reading git-diff-tree failed