asus-wmi: drop to_platform_driver macro
authorGeliang Tang <geliangtang@163.com>
Tue, 22 Dec 2015 14:16:13 +0000 (22:16 +0800)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 20 Jan 2016 01:35:45 +0000 (17:35 -0800)
to_platform_driver has been defined in platform_device.h, so drop
this repetitive macro in asus-wmi.c.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/asus-wmi.c

index f96f7b865267925086f464addccd7f1ef2314ac0..a96630d5234674353790275695b4668198d1d402 100644 (file)
@@ -56,9 +56,6 @@ MODULE_AUTHOR("Corentin Chary <corentin.chary@gmail.com>, "
 MODULE_DESCRIPTION("Asus Generic WMI Driver");
 MODULE_LICENSE("GPL");
 
-#define to_platform_driver(drv)                                        \
-       (container_of((drv), struct platform_driver, driver))
-
 #define to_asus_wmi_driver(pdrv)                                       \
        (container_of((pdrv), struct asus_wmi_driver, platform_driver))