summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/arche_platform.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-04-20 11:48:37 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-04-23 09:37:21 +0900
commit7b62b61c752a4700ecf11d63a7ec40aeb3cee66c (patch)
treefd61c48dd760bf5fe4b3ecccb71eaef78dbe3709 /drivers/staging/greybus/arche_platform.h
parentf2bf63a365425fa7df56c4e1dbe5a6bb29680324 (diff)
greybus: arche-ctrl: Don't expose driver internals to arche-platform driver
We have chosen the *ugly* way of registering two platform drivers from the module_init() of only one of them, so that we can avoid having two separate modules for them. But we should still be doing this in a sane way. There is no need to expose internals of arche-ctrl to arche-platform, like PM-ops, probe, resume, id-table, etc. Just expose an init and a exit callback. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arche_platform.h')
-rw-r--r--drivers/staging/greybus/arche_platform.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/greybus/arche_platform.h b/drivers/staging/greybus/arche_platform.h
index 700c548d68db..69b627b978b8 100644
--- a/drivers/staging/greybus/arche_platform.h
+++ b/drivers/staging/greybus/arche_platform.h
@@ -18,8 +18,8 @@ enum arche_platform_state {
};
-int arche_apb_ctrl_probe(struct platform_device *pdev);
-int arche_apb_ctrl_remove(struct platform_device *pdev);
+int __init arche_apb_init(void);
+void __exit arche_apb_exit(void);
/* Operational states for the APB device */
int apb_ctrl_coldboot(struct device *dev);
@@ -27,7 +27,4 @@ int apb_ctrl_fw_flashing(struct device *dev);
int apb_ctrl_standby_boot(struct device *dev);
void apb_ctrl_poweroff(struct device *dev);
-
-extern const struct dev_pm_ops arche_apb_ctrl_pm_ops;
-
#endif /* __ARCHE_PLATFORM_H */