lttng lib: ring buffer move null pointer check to open
[firefly-linux-kernel-4.4.55.git] / drivers / spi / spi-mpc52xx.c
index 015a974bed72d83b40d15407597c84749490ba66..57633d9634565682b8d89cfb66644e623c66ced8 100644 (file)
@@ -564,16 +564,4 @@ static struct platform_driver mpc52xx_spi_of_driver = {
        .probe = mpc52xx_spi_probe,
        .remove = __devexit_p(mpc52xx_spi_remove),
 };
-
-static int __init mpc52xx_spi_init(void)
-{
-       return platform_driver_register(&mpc52xx_spi_of_driver);
-}
-module_init(mpc52xx_spi_init);
-
-static void __exit mpc52xx_spi_exit(void)
-{
-       platform_driver_unregister(&mpc52xx_spi_of_driver);
-}
-module_exit(mpc52xx_spi_exit);
-
+module_platform_driver(mpc52xx_spi_of_driver);