c7fcb6b82182daae parent 0ad3dc3af8ba028368263b190a7a270f8d5cf5ae author Dmitry Torokhov 1259915775 -0800 committer Len Brown 1260985991 -0500 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 æ