summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-22 22:16:13 +0800
committerDarren Hart <dvhart@linux.intel.com>2016-01-19 17:35:45 -0800
commitf5b3f66548b72f8ab77fea5867bd45ad91ed2143 (patch)
treea96e164200fadd77c6789daea8bb5fbc74a67449 /drivers/platform
parentecc83e52b28c707da3e7fb8aa471417d9c0d1ec7 (diff)
downloadop-kernel-dev-f5b3f66548b72f8ab77fea5867bd45ad91ed2143.zip
op-kernel-dev-f5b3f66548b72f8ab77fea5867bd45ad91ed2143.tar.gz
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>
Diffstat (limited to 'drivers/platform')
-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 f96f7b8..a96630d 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))
OpenPOWER on IntegriCloud