powerpc/mpc52xx: 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: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
b69f0859dc
commit
6c27b20395
|
@ -578,18 +578,4 @@ static struct platform_driver mpc52xx_lpbfifo_driver = {
|
||||||
.probe = mpc52xx_lpbfifo_probe,
|
.probe = mpc52xx_lpbfifo_probe,
|
||||||
.remove = __devexit_p(mpc52xx_lpbfifo_remove),
|
.remove = __devexit_p(mpc52xx_lpbfifo_remove),
|
||||||
};
|
};
|
||||||
|
module_platform_driver(mpc52xx_lpbfifo_driver);
|
||||||
/***********************************************************************
|
|
||||||
* Module init/exit
|
|
||||||
*/
|
|
||||||
static int __init mpc52xx_lpbfifo_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&mpc52xx_lpbfifo_driver);
|
|
||||||
}
|
|
||||||
module_init(mpc52xx_lpbfifo_init);
|
|
||||||
|
|
||||||
static void __exit mpc52xx_lpbfifo_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&mpc52xx_lpbfifo_driver);
|
|
||||||
}
|
|
||||||
module_exit(mpc52xx_lpbfifo_exit);
|
|
||||||
|
|
Loading…
Reference in New Issue