pata_samsung_cf: 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: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
e189551bf7
commit
b186affe0c
|
@ -661,18 +661,7 @@ static struct platform_driver pata_s3c_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init pata_s3c_init(void)
|
module_platform_driver_probe(pata_s3c_driver, pata_s3c_probe);
|
||||||
{
|
|
||||||
return platform_driver_probe(&pata_s3c_driver, pata_s3c_probe);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit pata_s3c_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&pata_s3c_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(pata_s3c_init);
|
|
||||||
module_exit(pata_s3c_exit);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Abhilash Kesavan, <a.kesavan@samsung.com>");
|
MODULE_AUTHOR("Abhilash Kesavan, <a.kesavan@samsung.com>");
|
||||||
MODULE_DESCRIPTION("low-level driver for Samsung PATA controller");
|
MODULE_DESCRIPTION("low-level driver for Samsung PATA controller");
|
||||||
|
|
Loading…
Reference in New Issue