summaryrefslogtreecommitdiff
path: root/include/linux/spmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/spmi.h')
-rw-r--r--include/linux/spmi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/spmi.h b/include/linux/spmi.h
index f84212cd3..1396a255d 100644
--- a/include/linux/spmi.h
+++ b/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