85xx: publish of device for cds platforms
Subsystems (2)
PATCH 1/1 85xx: publish of device for cds platforms
Publish the devices listed in dts under SOC as of_device for 85xx_cds platform. The devices are needed by the 85xx EDAC driver.
--- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/powerpc/platforms/85xx/mpc85xx_cds.c +14 -0
@@ -26,6 +26,7 @@#include <linux/module.h> #include <linux/interrupt.h> #include <linux/fsl_devices.h> +#include <linux/of_platform.h> #include <asm/system.h> #include <asm/pgtable.h>
@@ -335,6 +336,19 @@ static int __init mpc85xx_cds_probe(voidreturn of_flat_dt_is_compatible (root,"MPC85xxCDS" ); } +static struct of_device_id __initdata of_bus_ids[] = { + { .type ="soc" , }, + { .compatible ="soc" , }, + {}, +}; + +static int __init declare_of_platform_devices (void ) +{ +return of_platform_bus_probe (NULL , of_bus_ids,NULL ); +} +machine_device_initcall (mpc85xx_cds, declare_of_platform_devices); + +define_machine (mpc85xx_cds) { .name = "MPC85xx CDS", .probe = mpc85xx_cds_probe,
arch/powerpc/platforms/85xx/mpc85xx_cds.c static int __init mpc85xx_cds_probe(void · line 343
Quoted 5 lines · Dave Jiang
arch/powerpc/platforms/85xx/mpc85xx_cds.c +5
-0+static struct of_device_id __initdata of_bus_ids[] = { + { .type ="soc" , }, + { .compatible ="soc" , }, + {}, +};
Also add .compatible = "simple-bus".
-Scott
PATCH v2 1/1 85xx: publish of device for cds platforms
Publish the devices listed in dts under SOC as of_device for 85xx_cds platform. The devices are needed by the 85xx EDAC driver.
---
Added "simple bus" per Scott Wood
mrch/powerpc/platforms/85xx/pc85xx_cds.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/powerpc/platforms/85xx/mpc85xx_cds.c +15 -0
@@ -26,6 +26,7 @@#include <linux/module.h> #include <linux/interrupt.h> #include <linux/fsl_devices.h> +#include <linux/of_platform.h> #include <asm/system.h> #include <asm/pgtable.h>
@@ -335,6 +336,20 @@ static int __init mpc85xx_cds_probe(voidreturn of_flat_dt_is_compatible (root,"MPC85xxCDS" ); } +static struct of_device_id __initdata of_bus_ids[] = { + { .type ="soc" , }, + { .compatible ="soc" , }, + { .compatible ="simple-bus" , }, + {}, +}; + +static int __init declare_of_platform_devices (void ) +{ +return of_platform_bus_probe (NULL , of_bus_ids,NULL ); +} +machine_device_initcall (mpc85xx_cds, declare_of_platform_devices); + +define_machine (mpc85xx_cds) { .name = "MPC85xx CDS", .probe = mpc85xx_cds_probe,
Kumar Gala
AppliedQuoted 12 lines · Dave Jiang
Publish the devices listed in dts under SOC as
of_devicefor 85xx_cds platform. The devices are needed by the 85xx EDAC driver.Signed-off-by Dave Jiang <[email protected]>---
Added "simple bus" per Scott Wood
mrch/powerpc/platforms/85xx/pc85xx_cds.c| 15 +++++++++++++++1 file changed, 15 insertions(+)
applied.
- k