summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/spmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/spmi.h')
-rw-r--r--kernel/include/linux/spmi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/include/linux/spmi.h b/kernel/include/linux/spmi.h
index f84212cd3..1396a255d 100644
--- a/kernel/include/linux/spmi.h
+++ b/kernel/include/linux/spmi.h
@@ -153,7 +153,9 @@ static inline struct spmi_driver *to_spmi_driver(struct device_driver *d)
return container_of(d, struct spmi_driver, driver);
}
-int spmi_driver_register(struct spmi_driver *sdrv);
+#define spmi_driver_register(sdrv) \
+ __spmi_driver_register(sdrv, THIS_MODULE)
+int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner);
/**
* spmi_driver_unregister() - unregister an SPMI client driver