|
@@ -18,6 +18,7 @@
|
|
#include <linux/kdev_t.h>
|
|
#include <linux/kdev_t.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/seq_file.h>
|
|
#include <linux/seq_file.h>
|
|
|
|
+#include <linux/of_platform.h>
|
|
|
|
|
|
#include <asm/system.h>
|
|
#include <asm/system.h>
|
|
#include <asm/time.h>
|
|
#include <asm/time.h>
|
|
@@ -212,6 +213,19 @@ mpc86xx_time_init(void)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static __initdata struct of_device_id of_bus_ids[] = {
|
|
|
|
+ { .compatible = "simple-bus", },
|
|
|
|
+ {},
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static int __init declare_of_platform_devices(void)
|
|
|
|
+{
|
|
|
|
+ of_platform_bus_probe(NULL, of_bus_ids, NULL);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+machine_device_initcall(mpc86xx_hpcn, declare_of_platform_devices);
|
|
|
|
+
|
|
define_machine(mpc86xx_hpcn) {
|
|
define_machine(mpc86xx_hpcn) {
|
|
.name = "MPC86xx HPCN",
|
|
.name = "MPC86xx HPCN",
|
|
.probe = mpc86xx_hpcn_probe,
|
|
.probe = mpc86xx_hpcn_probe,
|