mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
powerpc/sysdev: Use module_platform_driver macro
This patch removes some code duplication by using module_platform_driver. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
b2bb65f680
commit
40c935ae3d
1 changed files with 1 additions and 12 deletions
|
@ -214,18 +214,7 @@ static struct platform_driver pmi_of_platform_driver = {
|
|||
.of_match_table = pmi_match,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init pmi_module_init(void)
|
||||
{
|
||||
return platform_driver_register(&pmi_of_platform_driver);
|
||||
}
|
||||
module_init(pmi_module_init);
|
||||
|
||||
static void __exit pmi_module_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&pmi_of_platform_driver);
|
||||
}
|
||||
module_exit(pmi_module_exit);
|
||||
module_platform_driver(pmi_of_platform_driver);
|
||||
|
||||
int pmi_send_message(pmi_message_t msg)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue