mfd: htc-pasic3: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
bbc48c6aaa
commit
e8fe6a8279
1 changed files with 1 additions and 12 deletions
|
@ -208,18 +208,7 @@ static struct platform_driver pasic3_driver = {
|
|||
.remove = pasic3_remove,
|
||||
};
|
||||
|
||||
static int __init pasic3_base_init(void)
|
||||
{
|
||||
return platform_driver_probe(&pasic3_driver, pasic3_probe);
|
||||
}
|
||||
|
||||
static void __exit pasic3_base_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&pasic3_driver);
|
||||
}
|
||||
|
||||
module_init(pasic3_base_init);
|
||||
module_exit(pasic3_base_exit);
|
||||
module_platform_driver_probe(pasic3_driver, pasic3_probe);
|
||||
|
||||
MODULE_AUTHOR("Philipp Zabel <philipp.zabel@gmail.com>");
|
||||
MODULE_DESCRIPTION("Core driver for HTC PASIC3");
|
||||
|
|
Loading…
Reference in a new issue