summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeliang Tang2015-12-22 15:16:13 +0100
committerDarren Hart2016-01-20 02:35:45 +0100
commitf5b3f66548b72f8ab77fea5867bd45ad91ed2143 (patch)
treea96e164200fadd77c6789daea8bb5fbc74a67449
parentintel-hid: new hid event driver for hotkeys (diff)
downloadkernel-qcow2-linux-f5b3f66548b72f8ab77fea5867bd45ad91ed2143.tar.gz
kernel-qcow2-linux-f5b3f66548b72f8ab77fea5867bd45ad91ed2143.tar.xz
kernel-qcow2-linux-f5b3f66548b72f8ab77fea5867bd45ad91ed2143.zip
asus-wmi: drop to_platform_driver macro
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>
-rw-r--r--drivers/platform/x86/asus-wmi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index f96f7b865267..a96630d52346 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -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))