@@ -431,6 +431,9 @@ static int bcm2835_sdram_probe(struct platform_device *pdev)
/* setup debugfs */
bcm2835_sdram_debugfs(pdev);
+ /* note that we have registered sdram */
+ dev_dbg(&pdev->dev, "registered sdram\n");
+
return 0;
}
@@ -457,7 +460,12 @@ static struct platform_driver bcm2835_sdram_driver = {
.of_match_table = bcm2835_sdram_of_match_table,
},
};
-module_platform_driver(bcm2835_sdram_driver);
+
+static int __init __bcm2835_sdram_driver_init(void)
+{
+ return platform_driver_register(&bcm2835_sdram_driver);
+}
+core_initcall_sync(__bcm2835_sdram_driver_init);
MODULE_AUTHOR("Martin Sperl");
MODULE_DESCRIPTION("sdram driver for bcm2835 chip");