Commit f64d6e2a authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'devicetree-for-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux

Pull DeviceTree updates from Rob Herring:

 - remove most of_platform_populate() calls in arch code.  Now the DT
   core code calls it in the default case and platforms only need to
   call it if they have special needs

 - use pr_fmt on all the DT core print statements

 - CoreSight binding doc improvements to block name descriptions

 - add dt_to_config script which can parse dts files and list
   corresponding kernel config options

 - fix memory leak hit with a PowerMac DT

 - correct a bunch of STMicro compatible strings to use the correct
   vendor prefix

 - fix DA9052 PMIC binding doc to match what is actually used in dts
   files

* tag 'devicetree-for-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (35 commits)
  documentation: da9052: Update regulator bindings names to match DA9052/53 DTS expectations
  xtensa: Partially Revert "xtensa: Remove unnecessary of_platform_populate with default match table"
  xtensa: Fix build error due to missing include file
  MIPS: ath79: Add missing include file
  Fix spelling errors in Documentation/devicetree
  ARM: dts: fix STMicroelectronics compatible strings
  powerpc/dts: fix STMicroelectronics compatible strings
  Documentation: dt: i2c: use correct STMicroelectronics vendor prefix
  scripts/dtc: dt_to_config - kernel config options for a devicetree
  of: fdt: mark unflattened tree as detached
  of: overlay: add resolver error prints
  coresight: document binding acronyms
  Documentation/devicetree: document cavium-pip rx-delay/tx-delay properties
  of: use pr_fmt prefix for all console printing
  of/irq: Mark initialised interrupt controllers as populated
  of: fix memory leak related to safe_name()
  Revert "of/platform: export of_default_bus_match_table"
  of: unittest: use of_platform_default_populate() to populate default bus
  memory: omap-gpmc: use of_platform_default_populate() to populate default bus
  bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus
  ...
parents 1056c9bd 099c0cbd
...@@ -12,14 +12,33 @@ its hardware characteristcs. ...@@ -12,14 +12,33 @@ its hardware characteristcs.
* compatible: These have to be supplemented with "arm,primecell" as * compatible: These have to be supplemented with "arm,primecell" as
drivers are using the AMBA bus interface. Possible values include: drivers are using the AMBA bus interface. Possible values include:
- "arm,coresight-etb10", "arm,primecell"; - Embedded Trace Buffer (version 1.0):
- "arm,coresight-tpiu", "arm,primecell"; "arm,coresight-etb10", "arm,primecell";
- "arm,coresight-tmc", "arm,primecell";
- "arm,coresight-funnel", "arm,primecell"; - Trace Port Interface Unit:
- "arm,coresight-etm3x", "arm,primecell"; "arm,coresight-tpiu", "arm,primecell";
- "arm,coresight-etm4x", "arm,primecell";
- "qcom,coresight-replicator1x", "arm,primecell"; - Trace Memory Controller, used for Embedded Trace Buffer(ETB),
- "arm,coresight-stm", "arm,primecell"; [1] Embedded Trace FIFO(ETF) and Embedded Trace Router(ETR)
configuration. The configuration mode (ETB, ETF, ETR) is
discovered at boot time when the device is probed.
"arm,coresight-tmc", "arm,primecell";
- Trace Funnel:
"arm,coresight-funnel", "arm,primecell";
- Embedded Trace Macrocell (version 3.x) and
Program Flow Trace Macrocell:
"arm,coresight-etm3x", "arm,primecell";
- Embedded Trace Macrocell (version 4.x):
"arm,coresight-etm4x", "arm,primecell";
- Qualcomm Configurable Replicator (version 1.x):
"qcom,coresight-replicator1x", "arm,primecell";
- System Trace Macrocell:
"arm,coresight-stm", "arm,primecell"; [1]
* reg: physical base address and length of the register * reg: physical base address and length of the register
set(s) of the component. set(s) of the component.
......
...@@ -86,10 +86,10 @@ Optional properties: ...@@ -86,10 +86,10 @@ Optional properties:
firmware) firmware)
- arm,dynamic-clock-gating : L2 dynamic clock gating. Value: <0> (forcibly - arm,dynamic-clock-gating : L2 dynamic clock gating. Value: <0> (forcibly
disable), <1> (forcibly enable), property absent (OS specific behavior, disable), <1> (forcibly enable), property absent (OS specific behavior,
preferrably retain firmware settings) preferably retain firmware settings)
- arm,standby-mode: L2 standby mode enable. Value <0> (forcibly disable), - arm,standby-mode: L2 standby mode enable. Value <0> (forcibly disable),
<1> (forcibly enable), property absent (OS specific behavior, <1> (forcibly enable), property absent (OS specific behavior,
preferrably retain firmware settings) preferably retain firmware settings)
Example: Example:
......
...@@ -146,10 +146,10 @@ samsung,24ad0xd1 S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power) ...@@ -146,10 +146,10 @@ samsung,24ad0xd1 S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power)
sgx,vz89x SGX Sensortech VZ89X Sensors sgx,vz89x SGX Sensortech VZ89X Sensors
sii,s35390a 2-wire CMOS real-time clock sii,s35390a 2-wire CMOS real-time clock
skyworks,sky81452 Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply skyworks,sky81452 Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply
st-micro,24c256 i2c serial eeprom (24cxx) st,24c256 i2c serial eeprom (24cxx)
stm,m41t00 Serial Access TIMEKEEPER st,m41t00 Serial real-time clock (RTC)
stm,m41t62 Serial real-time clock (RTC) with alarm st,m41t62 Serial real-time clock (RTC) with alarm
stm,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS st,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS
taos,tsl2550 Ambient Light Sensor with SMBUS/Two Wire Serial Interface taos,tsl2550 Ambient Light Sensor with SMBUS/Two Wire Serial Interface
ti,ads7828 8-Channels, 12-bit ADC ti,ads7828 8-Channels, 12-bit ADC
ti,ads7830 8-Channels, 8-bit ADC ti,ads7830 8-Channels, 8-bit ADC
......
...@@ -8,10 +8,13 @@ Sub-nodes: ...@@ -8,10 +8,13 @@ Sub-nodes:
- regulators : Contain the regulator nodes. The DA9052/53 regulators are - regulators : Contain the regulator nodes. The DA9052/53 regulators are
bound using their names as listed below: bound using their names as listed below:
buck0 : regulator BUCK0 buck1 : regulator BUCK CORE
buck1 : regulator BUCK1 buck2 : regulator BUCK PRO
buck2 : regulator BUCK2 buck3 : regulator BUCK MEM
buck3 : regulator BUCK3 buck4 : regulator BUCK PERI
ldo1 : regulator LDO1
ldo2 : regulator LDO2
ldo3 : regulator LDO3
ldo4 : regulator LDO4 ldo4 : regulator LDO4
ldo5 : regulator LDO5 ldo5 : regulator LDO5
ldo6 : regulator LDO6 ldo6 : regulator LDO6
...@@ -19,9 +22,6 @@ Sub-nodes: ...@@ -19,9 +22,6 @@ Sub-nodes:
ldo8 : regulator LDO8 ldo8 : regulator LDO8
ldo9 : regulator LDO9 ldo9 : regulator LDO9
ldo10 : regulator LDO10 ldo10 : regulator LDO10
ldo11 : regulator LDO11
ldo12 : regulator LDO12
ldo13 : regulator LDO13
The bindings details of individual regulator device can be found in: The bindings details of individual regulator device can be found in:
Documentation/devicetree/bindings/regulator/regulator.txt Documentation/devicetree/bindings/regulator/regulator.txt
...@@ -36,22 +36,22 @@ i2c@63fc8000 { /* I2C1 */ ...@@ -36,22 +36,22 @@ i2c@63fc8000 { /* I2C1 */
reg = <0x48>; reg = <0x48>;
regulators { regulators {
buck0 { buck1 {
regulator-min-microvolt = <500000>; regulator-min-microvolt = <500000>;
regulator-max-microvolt = <2075000>; regulator-max-microvolt = <2075000>;
}; };
buck1 { buck2 {
regulator-min-microvolt = <500000>; regulator-min-microvolt = <500000>;
regulator-max-microvolt = <2075000>; regulator-max-microvolt = <2075000>;
}; };
buck2 { buck3 {
regulator-min-microvolt = <925000>; regulator-min-microvolt = <925000>;
regulator-max-microvolt = <2500000>; regulator-max-microvolt = <2500000>;
}; };
buck3 { buck4 {
regulator-min-microvolt = <925000>; regulator-min-microvolt = <925000>;
regulator-max-microvolt = <2500000>; regulator-max-microvolt = <2500000>;
}; };
......
...@@ -37,6 +37,12 @@ Properties for PIP port which is a child the PIP interface: ...@@ -37,6 +37,12 @@ Properties for PIP port which is a child the PIP interface:
- phy-handle: Optional, see ethernet.txt file in the same directory. - phy-handle: Optional, see ethernet.txt file in the same directory.
- rx-delay: Delay value for RGMII receive clock. Optional. Disabled if 0.
Value range is 1-31, and mapping to the actual delay varies depending on HW.
- tx-delay: Delay value for RGMII transmit clock. Optional. Disabled if 0.
Value range is 1-31, and mapping to the actual delay varies depending on HW.
Example: Example:
pip@11800a0000000 { pip@11800a0000000 {
......
...@@ -317,7 +317,7 @@ Each port children node must have the following mandatory properties: ...@@ -317,7 +317,7 @@ Each port children node must have the following mandatory properties:
Note that a port labelled "dsa" will imply checking for the uplink phandle Note that a port labelled "dsa" will imply checking for the uplink phandle
described below. described below.
Optionnal property: Optional property:
- link : Should be a list of phandles to another switch's DSA port. - link : Should be a list of phandles to another switch's DSA port.
This property is only used when switches are being This property is only used when switches are being
chained/cascaded together. This port is used as outgoing port chained/cascaded together. This port is used as outgoing port
......
...@@ -35,7 +35,7 @@ PROPERTIES ...@@ -35,7 +35,7 @@ PROPERTIES
Definition: Specifies the index of the FMan unit. Definition: Specifies the index of the FMan unit.
The cell-index value may be used by the SoC, to identify the The cell-index value may be used by the SoC, to identify the
FMan unit in the SoC memory map. In the table bellow, FMan unit in the SoC memory map. In the table below,
there's a description of the cell-index use in each SoC: there's a description of the cell-index use in each SoC:
- P1023: - P1023:
...@@ -247,7 +247,7 @@ PROPERTIES ...@@ -247,7 +247,7 @@ PROPERTIES
The cell-index value may be used by the FMan or the SoC, to The cell-index value may be used by the FMan or the SoC, to
identify the MAC unit in the FMan (or SoC) memory map. identify the MAC unit in the FMan (or SoC) memory map.
In the tables bellow there's a description of the cell-index In the tables below there's a description of the cell-index
use, there are two tables, one describes the use of cell-index use, there are two tables, one describes the use of cell-index
by the FMan, the second describes the use by the SoC: by the FMan, the second describes the use by the SoC:
......
...@@ -14,7 +14,7 @@ architectures that typically run big-endian operating systems ...@@ -14,7 +14,7 @@ architectures that typically run big-endian operating systems
be marked that way in the devicetree. be marked that way in the devicetree.
On SoCs that can be operated in both big-endian and little-endian On SoCs that can be operated in both big-endian and little-endian
modes, with a single hardware switch controlling both the endianess modes, with a single hardware switch controlling both the endianness
of the CPU and a byteswap for MMIO registers (e.g. many Broadcom MIPS of the CPU and a byteswap for MMIO registers (e.g. many Broadcom MIPS
chips), "native-endian" is used to allow using the same device tree chips), "native-endian" is used to allow using the same device tree
blob in both cases. blob in both cases.
......
...@@ -28,10 +28,10 @@ Optional properties: ...@@ -28,10 +28,10 @@ Optional properties:
- dma-names: Should contain "tx" for transmit and "rx" for receive channels - dma-names: Should contain "tx" for transmit and "rx" for receive channels
- qcom,tx-crci: Identificator <u32> for Client Rate Control Interface to be - qcom,tx-crci: Identificator <u32> for Client Rate Control Interface to be
used with TX DMA channel. Required when using DMA for transmission used with TX DMA channel. Required when using DMA for transmission
with UARTDM v1.3 and bellow. with UARTDM v1.3 and below.
- qcom,rx-crci: Identificator <u32> for Client Rate Control Interface to be - qcom,rx-crci: Identificator <u32> for Client Rate Control Interface to be
used with RX DMA channel. Required when using DMA for reception used with RX DMA channel. Required when using DMA for reception
with UARTDM v1.3 and bellow. with UARTDM v1.3 and below.
Note: Aliases may be defined to ensure the correct ordering of the UARTs. Note: Aliases may be defined to ensure the correct ordering of the UARTs.
The alias serialN will result in the UART being assigned port N. If any The alias serialN will result in the UART being assigned port N. If any
......
...@@ -30,7 +30,7 @@ Optional subnodes: ...@@ -30,7 +30,7 @@ Optional subnodes:
sub-nodes. This container may be sub-nodes. This container may be
omitted when the card has only one omitted when the card has only one
DAI link. See the examples and the DAI link. See the examples and the
section bellow. section below.
Dai-link subnode properties and subnodes: Dai-link subnode properties and subnodes:
......
...@@ -9,7 +9,7 @@ Required properties: ...@@ -9,7 +9,7 @@ Required properties:
one) one)
- clocks: phandle to the source clock (usually the AHB clock) - clocks: phandle to the source clock (usually the AHB clock)
Optionnal properties: Optional properties:
- resets: phandle to a reset controller asserting the timer - resets: phandle to a reset controller asserting the timer
Example: Example:
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/cache.h> #include <linux/cache.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/arcregs.h> #include <asm/arcregs.h>
...@@ -436,12 +435,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -436,12 +435,6 @@ void __init setup_arch(char **cmdline_p)
static int __init customize_machine(void) static int __init customize_machine(void)
{ {
/*
* Traverses flattened DeviceTree - registering platform devices
* (if any) complete with their resources
*/
of_platform_default_populate(NULL, NULL, NULL);
if (machine_desc->init_machine) if (machine_desc->init_machine)
machine_desc->init_machine(); machine_desc->init_machine();
......
...@@ -37,7 +37,7 @@ i2c0: i2c@80058000 { ...@@ -37,7 +37,7 @@ i2c0: i2c@80058000 {
status = "okay"; status = "okay";
rtc: rtc@68 { rtc: rtc@68 {
compatible = "stm,m41t62"; compatible = "st,m41t62";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -102,7 +102,7 @@ &i2c2 { ...@@ -102,7 +102,7 @@ &i2c2 {
status = "okay"; status = "okay";
rtc: m41t00@68 { rtc: m41t00@68 {
compatible = "stm,m41t00"; compatible = "st,m41t00";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -84,7 +84,7 @@ eeprom: eeprom@50 { ...@@ -84,7 +84,7 @@ eeprom: eeprom@50 {
}; };
rtc: rtc@68 { rtc: rtc@68 {
compatible = "stm,m41t62"; compatible = "st,m41t62";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -282,7 +282,7 @@ temp2: ad7414@4d { ...@@ -282,7 +282,7 @@ temp2: ad7414@4d {
}; };
rtc: m41t62@68 { rtc: m41t62@68 {
compatible = "stm,m41t62"; compatible = "st,m41t62";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -52,7 +52,7 @@ &i2c0 { ...@@ -52,7 +52,7 @@ &i2c0 {
status = "okay"; status = "okay";
rtc: rtc@68 { rtc: rtc@68 {
compatible = "stm,m41t82"; compatible = "st,m41t82";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <linux/bootmem.h> #include <linux/bootmem.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/screen_info.h> #include <linux/screen_info.h>
#include <linux/of_iommu.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kexec.h> #include <linux/kexec.h>
...@@ -903,14 +902,9 @@ static int __init customize_machine(void) ...@@ -903,14 +902,9 @@ static int __init customize_machine(void)
* machine from the device tree, if no callback is provided, * machine from the device tree, if no callback is provided,
* otherwise we would always need an init_machine callback. * otherwise we would always need an init_machine callback.
*/ */
of_iommu_init();
if (machine_desc->init_machine) if (machine_desc->init_machine)
machine_desc->init_machine(); machine_desc->init_machine();
#ifdef CONFIG_OF
else
of_platform_populate(NULL, of_default_bus_match_table,
NULL, NULL);
#endif
return 0; return 0;
} }
arch_initcall(customize_machine); arch_initcall(customize_machine);
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h> #include <linux/irqchip/arm-gic.h>
#include <linux/mfd/syscon.h> #include <linux/mfd/syscon.h>
#include <linux/of_platform.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
...@@ -44,8 +43,6 @@ static void __init artpec6_init_machine(void) ...@@ -44,8 +43,6 @@ static void __init artpec6_init_machine(void)
regmap_write(regmap, ARTPEC6_DMACFG_REGNUM, regmap_write(regmap, ARTPEC6_DMACFG_REGNUM,
ARTPEC6_DMACFG_UARTS_BURST); ARTPEC6_DMACFG_UARTS_BURST);
}; };
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg) static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg)
......
...@@ -30,7 +30,7 @@ static void __init at91rm9200_dt_device_init(void) ...@@ -30,7 +30,7 @@ static void __init at91rm9200_dt_device_init(void)
if (soc != NULL) if (soc != NULL)
soc_dev = soc_device_to_device(soc); soc_dev = soc_device_to_device(soc);
of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); of_platform_default_populate(NULL, NULL, soc_dev);
at91rm9200_pm_init(); at91rm9200_pm_init();
} }
......
...@@ -61,7 +61,7 @@ static void __init at91sam9_common_init(void) ...@@ -61,7 +61,7 @@ static void __init at91sam9_common_init(void)
if (soc != NULL) if (soc != NULL)
soc_dev = soc_device_to_device(soc); soc_dev = soc_device_to_device(soc);
of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); of_platform_default_populate(NULL, NULL, soc_dev);
} }
static void __init at91sam9_dt_device_init(void) static void __init at91sam9_dt_device_init(void)
......
...@@ -68,7 +68,7 @@ static void __init sama5_dt_device_init(void) ...@@ -68,7 +68,7 @@ static void __init sama5_dt_device_init(void)
if (soc != NULL) if (soc != NULL)
soc_dev = soc_device_to_device(soc); soc_dev = soc_device_to_device(soc);
of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev); of_platform_default_populate(NULL, NULL, soc_dev);
sama5_pm_init(); sama5_pm_init();
} }
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
*/ */
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -60,7 +59,6 @@ static void bcm21664_restart(enum reboot_mode mode, const char *cmd) ...@@ -60,7 +59,6 @@ static void bcm21664_restart(enum reboot_mode mode, const char *cmd)
static void __init bcm21664_init(void) static void __init bcm21664_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
kona_l2_cache_init(); kona_l2_cache_init();
} }
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -58,7 +57,6 @@ static void bcm281xx_restart(enum reboot_mode mode, const char *cmd) ...@@ -58,7 +57,6 @@ static void bcm281xx_restart(enum reboot_mode mode, const char *cmd)
static void __init bcm281xx_init(void) static void __init bcm281xx_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
kona_l2_cache_init(); kona_l2_cache_init();
} }
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/clk/bcm2835.h> #include <linux/clk/bcm2835.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -23,16 +22,7 @@ ...@@ -23,16 +22,7 @@
static void __init bcm2835_init(void) static void __init bcm2835_init(void)
{ {
int ret;
bcm2835_init_clocks(); bcm2835_init_clocks();
ret = of_platform_populate(NULL, of_default_bus_match_table, NULL,
NULL);
if (ret) {
pr_err("of_platform_populate failed: %d\n", ret);
BUG();
}
} }
static const char * const bcm2835_compat[] = { static const char * const bcm2835_compat[] = {
......
...@@ -395,8 +395,7 @@ static void __init cns3xxx_init(void) ...@@ -395,8 +395,7 @@ static void __init cns3xxx_init(void)
pm_power_off = cns3xxx_power_off; pm_power_off = cns3xxx_power_off;
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, cns3xxx_auxdata, NULL);
cns3xxx_auxdata, NULL);
} }
static const char *const cns3xxx_dt_compat[] __initconst = { static const char *const cns3xxx_dt_compat[] __initconst = {
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/soc/samsung/exynos-regs-pmu.h> #include <linux/soc/samsung/exynos-regs-pmu.h>
...@@ -217,8 +216,6 @@ static void __init exynos_dt_machine_init(void) ...@@ -217,8 +216,6 @@ static void __init exynos_dt_machine_init(void)
of_machine_is_compatible("samsung,exynos3250") || of_machine_is_compatible("samsung,exynos3250") ||
of_machine_is_compatible("samsung,exynos5250")) of_machine_is_compatible("samsung,exynos5250"))
platform_device_register(&exynos_cpuidle); platform_device_register(&exynos_cpuidle);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static char const *const exynos_dt_compat[] __initconst = { static char const *const exynos_dt_compat[] __initconst = {
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <linux/pl320-ipc.h> #include <linux/pl320-ipc.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <linux/amba/bus.h> #include <linux/amba/bus.h>
...@@ -163,8 +162,6 @@ static void __init highbank_init(void) ...@@ -163,8 +162,6 @@ static void __init highbank_init(void)
pl320_ipc_register_notifier(&hb_keys_nb); pl320_ipc_register_notifier(&hb_keys_nb);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
if (psci_ops.cpu_suspend) if (psci_ops.cpu_suspend)
platform_device_register(&highbank_cpuidle_device); platform_device_register(&highbank_cpuidle_device);
} }
......
...@@ -52,8 +52,6 @@ static void __init imx51_dt_init(void) ...@@ -52,8 +52,6 @@ static void __init imx51_dt_init(void)
{ {
imx51_ipu_mipi_setup(); imx51_ipu_mipi_setup();
imx_src_init(); imx_src_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static void __init imx51_init_late(void) static void __init imx51_init_late(void)
......
...@@ -32,8 +32,6 @@ static void __init imx53_dt_init(void) ...@@ -32,8 +32,6 @@ static void __init imx53_dt_init(void)
{ {
imx_src_init(); imx_src_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
imx_aips_allow_unprivileged_access("fsl,imx53-aipstz"); imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
} }
......
...@@ -278,7 +278,7 @@ static void __init imx6q_init_machine(void) ...@@ -278,7 +278,7 @@ static void __init imx6q_init_machine(void)
imx6q_enet_phy_init(); imx6q_enet_phy_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); of_platform_default_populate(NULL, NULL, parent);
imx_anatop_init(); imx_anatop_init();
cpu_is_imx6q() ? imx6q_pm_init() : imx6dl_pm_init(); cpu_is_imx6q() ? imx6q_pm_init() : imx6dl_pm_init();
......
...@@ -52,7 +52,7 @@ static void __init imx6sl_init_machine(void) ...@@ -52,7 +52,7 @@ static void __init imx6sl_init_machine(void)
if (parent == NULL) if (parent == NULL)
pr_warn("failed to initialize soc device\n"); pr_warn("failed to initialize soc device\n");
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); of_platform_default_populate(NULL, NULL, parent);
imx6sl_fec_init(); imx6sl_fec_init();
imx_anatop_init(); imx_anatop_init();
......
...@@ -72,7 +72,7 @@ static void __init imx6sx_init_machine(void) ...@@ -72,7 +72,7 @@ static void __init imx6sx_init_machine(void)
if (parent == NULL) if (parent == NULL)
pr_warn("failed to initialize soc device\n"); pr_warn("failed to initialize soc device\n");
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); of_platform_default_populate(NULL, NULL, parent);
imx6sx_enet_init(); imx6sx_enet_init();
imx_anatop_init(); imx_anatop_init();
......
...@@ -64,7 +64,6 @@ static void __init imx6ul_init_machine(void) ...@@ -64,7 +64,6 @@ static void __init imx6ul_init_machine(void)
if (parent == NULL) if (parent == NULL)
pr_warn("failed to initialize soc device\n"); pr_warn("failed to initialize soc device\n");
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
imx6ul_enet_init(); imx6ul_enet_init();
imx_anatop_init(); imx_anatop_init();
imx6ul_pm_init(); imx6ul_pm_init();
......
...@@ -93,7 +93,6 @@ static void __init imx7d_init_machine(void) ...@@ -93,7 +93,6 @@ static void __init imx7d_init_machine(void)
if (parent == NULL) if (parent == NULL)
pr_warn("failed to initialize soc device\n"); pr_warn("failed to initialize soc device\n");
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
imx_anatop_init(); imx_anatop_init();
imx7d_enet_init(); imx7d_enet_init();
} }
......
...@@ -240,8 +240,7 @@ static void __init ap_init_of(void) ...@@ -240,8 +240,7 @@ static void __init ap_init_of(void)
if (!ebi_base) if (!ebi_base)
return; return;
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, ap_auxdata_lookup, NULL);
ap_auxdata_lookup, NULL);
sc_dec = readl(ap_syscon_base + INTEGRATOR_SC_DEC_OFFSET); sc_dec = readl(ap_syscon_base + INTEGRATOR_SC_DEC_OFFSET);
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
......
...@@ -231,8 +231,7 @@ static void __init intcp_init_of(void) ...@@ -231,8 +231,7 @@ static void __init intcp_init_of(void)
if (!intcp_con_base) if (!intcp_con_base)
return; return;
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, intcp_auxdata_lookup, NULL);
intcp_auxdata_lookup, NULL);
} }
static const char * intcp_dt_board_compat[] = { static const char * intcp_dt_board_compat[] = {
......
...@@ -60,7 +60,6 @@ static void __init keystone_init(void) ...@@ -60,7 +60,6 @@ static void __init keystone_init(void)
bus_register_notifier(&platform_bus_type, &platform_nb); bus_register_notifier(&platform_bus_type, &platform_nb);
} }
keystone_pm_runtime_init(); keystone_pm_runtime_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static long long __init keystone_pv_fixup(void) static long long __init keystone_pv_fixup(void)
......
...@@ -191,8 +191,7 @@ static void __init lpc3250_machine_init(void) ...@@ -191,8 +191,7 @@ static void __init lpc3250_machine_init(void)
LPC32XX_CLKPWR_TESTCLK_TESTCLK2_EN, LPC32XX_CLKPWR_TESTCLK_TESTCLK2_EN,
LPC32XX_CLKPWR_TEST_CLK_SEL); LPC32XX_CLKPWR_TEST_CLK_SEL);
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, lpc32xx_auxdata_lookup, NULL);
lpc32xx_auxdata_lookup, NULL);
} }
static const char *const lpc32xx_dt_compat[] __initconst = { static const char *const lpc32xx_dt_compat[] __initconst = {
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
...@@ -144,8 +143,6 @@ static void __init mvebu_dt_init(void) ...@@ -144,8 +143,6 @@ static void __init mvebu_dt_init(void)
{ {
if (of_machine_is_compatible("marvell,armadaxp")) if (of_machine_is_compatible("marvell,armadaxp"))
i2c_quirk(); i2c_quirk();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char * const armada_370_xp_dt_compat[] __initconst = { static const char * const armada_370_xp_dt_compat[] __initconst = {
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/mbus.h> #include <linux/mbus.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/soc/dove/pmu.h> #include <linux/soc/dove/pmu.h>
#include <asm/hardware/cache-tauros2.h> #include <asm/hardware/cache-tauros2.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -26,7 +25,6 @@ static void __init dove_init(void) ...@@ -26,7 +25,6 @@ static void __init dove_init(void)
#endif #endif
BUG_ON(mvebu_mbus_dt_init(false)); BUG_ON(mvebu_mbus_dt_init(false));
dove_init_pmu(); dove_init_pmu();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char * const dove_dt_compat[] __initconst = { static const char * const dove_dt_compat[] __initconst = {
......
...@@ -179,7 +179,7 @@ static void __init kirkwood_dt_init(void) ...@@ -179,7 +179,7 @@ static void __init kirkwood_dt_init(void)
kirkwood_pm_init(); kirkwood_pm_init();
kirkwood_dt_eth_fixup(); kirkwood_dt_eth_fixup();
of_platform_populate(NULL, of_default_bus_match_table, auxdata, NULL); of_platform_default_populate(NULL, auxdata, NULL);
} }
static const char * const kirkwood_dt_board_compat[] __initconst = { static const char * const kirkwood_dt_board_compat[] __initconst = {
......
...@@ -498,8 +498,7 @@ static void __init mxs_machine_init(void) ...@@ -498,8 +498,7 @@ static void __init mxs_machine_init(void)
else if (of_machine_is_compatible("msr,m28cu3")) else if (of_machine_is_compatible("msr,m28cu3"))
m28cu3_init(); m28cu3_init();
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, NULL, parent);
NULL, parent);
mxs_restart_init(); mxs_restart_init();
......
...@@ -57,8 +57,7 @@ static struct of_dev_auxdata nspire_auxdata[] __initdata = { ...@@ -57,8 +57,7 @@ static struct of_dev_auxdata nspire_auxdata[] __initdata = {
static void __init nspire_init(void) static void __init nspire_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, nspire_auxdata, NULL);
nspire_auxdata, NULL);
} }
static void nspire_restart(enum reboot_mode mode, const char *cmd) static void nspire_restart(enum reboot_mode mode, const char *cmd)
......
...@@ -63,8 +63,7 @@ static void __init orion5x_dt_init(void) ...@@ -63,8 +63,7 @@ static void __init orion5x_dt_init(void)
if (of_machine_is_compatible("maxtor,shared-storage-2")) if (of_machine_is_compatible("maxtor,shared-storage-2"))
mss2_init(); mss2_init();
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, orion5x_auxdata_lookup, NULL);
orion5x_auxdata_lookup, NULL);
} }
static const char *orion5x_dt_compat[] = { static const char *orion5x_dt_compat[] = {
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -54,7 +53,6 @@ static void __init picoxcell_map_io(void) ...@@ -54,7 +53,6 @@ static void __init picoxcell_map_io(void)
static void __init picoxcell_init_machine(void) static void __init picoxcell_init_machine(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
picoxcell_setup_restart(); picoxcell_setup_restart();
} }
......
...@@ -73,7 +73,6 @@ static void __init rockchip_timer_init(void) ...@@ -73,7 +73,6 @@ static void __init rockchip_timer_init(void)
static void __init rockchip_dt_init(void) static void __init rockchip_dt_init(void)
{ {
rockchip_suspend_init(); rockchip_suspend_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char * const rockchip_board_dt_compat[] = { static const char * const rockchip_board_dt_compat[] = {
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/of_platform.h>
#include <linux/serial_s3c.h> #include <linux/serial_s3c.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -35,7 +34,6 @@ static void __init s3c2416_dt_map_io(void) ...@@ -35,7 +34,6 @@ static void __init s3c2416_dt_map_io(void)
static void __init s3c2416_dt_machine_init(void) static void __init s3c2416_dt_machine_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
s3c_pm_init(); s3c_pm_init();
} }
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/system_misc.h> #include <asm/system_misc.h>
...@@ -48,7 +46,6 @@ static void __init s3c64xx_dt_map_io(void) ...@@ -48,7 +46,6 @@ static void __init s3c64xx_dt_map_io(void)
static void __init s3c64xx_dt_init_machine(void) static void __init s3c64xx_dt_init_machine(void)
{ {
samsung_wdt_reset_of_init(); samsung_wdt_reset_of_init();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static void s3c64xx_dt_restart(enum reboot_mode mode, const char *cmd) static void s3c64xx_dt_restart(enum reboot_mode mode, const char *cmd)
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h> #include <linux/irqchip/arm-gic.h>
#include <linux/of_platform.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
...@@ -77,8 +76,6 @@ static void __init r8a7740_init_irq_of(void) ...@@ -77,8 +76,6 @@ static void __init r8a7740_init_irq_of(void)
static void __init r8a7740_generic_init(void) static void __init r8a7740_generic_init(void)
{ {
r8a7740_meram_workaround(); r8a7740_meram_workaround();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char *const r8a7740_boards_compat_dt[] __initconst = { static const char *const r8a7740_boards_compat_dt[] __initconst = {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/of_platform.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/input.h> #include <linux/input.h>
#include <linux/io.h> #include <linux/io.h>
...@@ -55,7 +54,6 @@ static void __init sh73a0_generic_init(void) ...@@ -55,7 +54,6 @@ static void __init sh73a0_generic_init(void)
/* Shared attribute override enable, 64K*8way */ /* Shared attribute override enable, 64K*8way */
l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff); l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff);
#endif #endif
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char *const sh73a0_boards_compat_dt[] __initconst = { static const char *const sh73a0_boards_compat_dt[] __initconst = {
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#define pr_fmt(fmt) "SPEAr1310: " fmt #define pr_fmt(fmt) "SPEAr1310: " fmt
#include <linux/amba/pl022.h> #include <linux/amba/pl022.h>
#include <linux/of_platform.h>
#include <linux/pata_arasan_cf_data.h> #include <linux/pata_arasan_cf_data.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
...@@ -27,7 +26,6 @@ ...@@ -27,7 +26,6 @@
static void __init spear1310_dt_init(void) static void __init spear1310_dt_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
platform_device_register_simple("spear-cpufreq", -1, NULL, 0); platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
} }
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
static void __init spear1340_dt_init(void) static void __init spear1340_dt_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
platform_device_register_simple("spear-cpufreq", -1, NULL, 0); platform_device_register_simple("spear-cpufreq", -1, NULL, 0);
} }
......
...@@ -194,8 +194,7 @@ static void __init spear300_dt_init(void) ...@@ -194,8 +194,7 @@ static void __init spear300_dt_init(void)
pl080_plat_data.slave_channels = spear300_dma_info; pl080_plat_data.slave_channels = spear300_dma_info;
pl080_plat_data.num_slave_channels = ARRAY_SIZE(spear300_dma_info); pl080_plat_data.num_slave_channels = ARRAY_SIZE(spear300_dma_info);
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, spear300_auxdata_lookup, NULL);
spear300_auxdata_lookup, NULL);
} }
static const char * const spear300_dt_board_compat[] = { static const char * const spear300_dt_board_compat[] = {
......
...@@ -236,8 +236,7 @@ static void __init spear310_dt_init(void) ...@@ -236,8 +236,7 @@ static void __init spear310_dt_init(void)
pl080_plat_data.slave_channels = spear310_dma_info; pl080_plat_data.slave_channels = spear310_dma_info;
pl080_plat_data.num_slave_channels = ARRAY_SIZE(spear310_dma_info); pl080_plat_data.num_slave_channels = ARRAY_SIZE(spear310_dma_info);
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, spear310_auxdata_lookup, NULL);
spear310_auxdata_lookup, NULL);
} }
static const char * const spear310_dt_board_compat[] = { static const char * const spear310_dt_board_compat[] = {
......
...@@ -240,8 +240,7 @@ static void __init spear320_dt_init(void) ...@@ -240,8 +240,7 @@ static void __init spear320_dt_init(void)
pl080_plat_data.slave_channels = spear320_dma_info; pl080_plat_data.slave_channels = spear320_dma_info;
pl080_plat_data.num_slave_channels = ARRAY_SIZE(spear320_dma_info); pl080_plat_data.num_slave_channels = ARRAY_SIZE(spear320_dma_info);
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, spear320_auxdata_lookup, NULL);
spear320_auxdata_lookup, NULL);
} }
static const char * const spear320_dt_board_compat[] = { static const char * const spear320_dt_board_compat[] = {
......
...@@ -411,8 +411,7 @@ struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = { ...@@ -411,8 +411,7 @@ struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = {
static void __init spear600_dt_init(void) static void __init spear600_dt_init(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, spear6xx_auxdata_lookup, NULL);
spear6xx_auxdata_lookup, NULL);
} }
static const char *spear600_dt_board_compat[] = { static const char *spear600_dt_board_compat[] = {
......
...@@ -115,7 +115,7 @@ static void __init tegra_dt_init(void) ...@@ -115,7 +115,7 @@ static void __init tegra_dt_init(void)
* devices * devices
*/ */
out: out:
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); of_platform_default_populate(NULL, NULL, parent);
} }
static void __init paz00_init(void) static void __init paz00_init(void)
......
...@@ -391,8 +391,7 @@ static void __init u300_init_machine_dt(void) ...@@ -391,8 +391,7 @@ static void __init u300_init_machine_dt(void)
pinctrl_register_mappings(u300_pinmux_map, pinctrl_register_mappings(u300_pinmux_map,
ARRAY_SIZE(u300_pinmux_map)); ARRAY_SIZE(u300_pinmux_map));
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, u300_auxdata_lookup, NULL);
u300_auxdata_lookup, NULL);
/* Enable SEMI self refresh */ /* Enable SEMI self refresh */
val = readw(syscon_base + U300_SYSCON_SMCR) | val = readw(syscon_base + U300_SYSCON_SMCR) |
......
...@@ -344,8 +344,7 @@ static void __init versatile_dt_init(void) ...@@ -344,8 +344,7 @@ static void __init versatile_dt_init(void)
versatile_dt_pci_init(); versatile_dt_pci_init();
of_platform_populate(NULL, of_default_bus_match_table, of_platform_default_populate(NULL, versatile_auxdata_lookup, NULL);
versatile_auxdata_lookup, NULL);
} }
static const char *const versatile_dt_match[] __initconst = { static const char *const versatile_dt_match[] __initconst = {
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/of_platform.h>
#define LEGACY_GPIO_BASE 0xD8110000 #define LEGACY_GPIO_BASE 0xD8110000
#define LEGACY_PMC_BASE 0xD8130000 #define LEGACY_PMC_BASE 0xD8130000
...@@ -158,8 +157,6 @@ static void __init vt8500_init(void) ...@@ -158,8 +157,6 @@ static void __init vt8500_init(void)
pm_power_off = &vt8500_power_off; pm_power_off = &vt8500_power_off;
else else
pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__); pr_err("%s: PMC Hibernation register could not be remapped, not enabling power off!\n", __func__);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char * const vt8500_dt_compat[] = { static const char * const vt8500_dt_compat[] = {
......
...@@ -141,7 +141,7 @@ static void __init zynq_init_machine(void) ...@@ -141,7 +141,7 @@ static void __init zynq_init_machine(void)
* Finished with the static registrations now; fill in the missing * Finished with the static registrations now; fill in the missing
* devices * devices
*/ */
of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); of_platform_default_populate(NULL, NULL, parent);
platform_device_register(&zynq_cpuidle_device); platform_device_register(&zynq_cpuidle_device);
} }
......
...@@ -39,9 +39,7 @@ ...@@ -39,9 +39,7 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/memblock.h> #include <linux/memblock.h>
#include <linux/of_iommu.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <linux/efi.h> #include <linux/efi.h>
#include <linux/psci.h> #include <linux/psci.h>
...@@ -303,19 +301,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -303,19 +301,6 @@ void __init setup_arch(char **cmdline_p)
} }
} }
static int __init arm64_device_init(void)
{
if (of_have_populated_dt()) {
of_iommu_init();
of_platform_populate(NULL, of_default_bus_match_table,
NULL, NULL);
} else if (acpi_disabled) {
pr_crit("Device tree not populated\n");
}
return 0;
}
arch_initcall_sync(arm64_device_init);
static int __init topology_init(void) static int __init topology_init(void)
{ {
int i; int i;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Copyright 2010, 2011 Texas Instruments Incorporated # Copyright 2010, 2011 Texas Instruments Incorporated
# #
obj-y = platform.o cache.o megamod-pic.o pll.o plldata.o timer64.o obj-y = cache.o megamod-pic.o pll.o plldata.o timer64.o
obj-y += dscr.o obj-y += dscr.o
# SoC objects # SoC objects
......
/*
* Copyright 2011 Texas Instruments Incorporated
*
* This file is licensed under the terms of the GNU General Public License
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/
#include <linux/init.h>
#include <linux/of_platform.h>
static int __init c6x_device_probe(void)
{
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
}
core_initcall(c6x_device_probe);
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <arch/system.h> #include <arch/system.h>
...@@ -212,10 +211,3 @@ static int __init topology_init(void) ...@@ -212,10 +211,3 @@ static int __init topology_init(void)
} }
subsys_initcall(topology_init); subsys_initcall(topology_init);
static int __init cris_of_init(void)
{
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
}
core_initcall(cris_of_init);
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/memblock.h> #include <linux/memblock.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <linux/pfn.h> #include <linux/pfn.h>
#include <linux/root_dev.h> #include <linux/root_dev.h>
#include <linux/sched.h> #include <linux/sched.h>
...@@ -414,9 +413,7 @@ static int __init customize_machine(void) ...@@ -414,9 +413,7 @@ static int __init customize_machine(void)
/* customizes platform devices, or adds new ones */ /* customizes platform devices, or adds new ones */
if (machine_desc->init_machine) if (machine_desc->init_machine)
machine_desc->init_machine(); machine_desc->init_machine();
else
of_platform_populate(NULL, of_default_bus_match_table, NULL,
NULL);
return 0; return 0;
} }
arch_initcall(customize_machine); arch_initcall(customize_machine);
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#include <linux/of_platform.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
...@@ -285,7 +284,6 @@ void __init plat_time_init(void) ...@@ -285,7 +284,6 @@ void __init plat_time_init(void)
static int __init ath79_setup(void) static int __init ath79_setup(void)
{ {
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
if (mips_machtype == ATH79_MACH_GENERIC_OF) if (mips_machtype == ATH79_MACH_GENERIC_OF)
return 0; return 0;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/prom.h> #include <asm/prom.h>
...@@ -74,13 +73,6 @@ void __init device_tree_init(void) ...@@ -74,13 +73,6 @@ void __init device_tree_init(void)
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
} }
static int __init populate_machine(void)
{
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
}
arch_initcall(populate_machine);
const char *get_system_type(void) const char *get_system_type(void)
{ {
if (config_enabled(CONFIG_MACH_JZ4780)) if (config_enabled(CONFIG_MACH_JZ4780))
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/libfdt.h> #include <linux/libfdt.h>
#include <linux/of_platform.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <asm/prom.h> #include <asm/prom.h>
...@@ -107,10 +106,3 @@ void __init device_tree_init(void) ...@@ -107,10 +106,3 @@ void __init device_tree_init(void)
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
} }
static int __init customize_machine(void)
{
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0;
}
arch_initcall(customize_machine);
...@@ -147,8 +147,7 @@ static int __init plat_of_setup(void) ...@@ -147,8 +147,7 @@ static int __init plat_of_setup(void)
panic("Device tree not present"); panic("Device tree not present");
pic32_of_prepare_platform_data(pic32_auxdata_lookup); pic32_of_prepare_platform_data(pic32_auxdata_lookup);
if (of_platform_populate(NULL, of_default_bus_match_table, if (of_platform_default_populate(NULL, pic32_auxdata_lookup, NULL))
pic32_auxdata_lookup, NULL))
panic("Failed to populate DT"); panic("Failed to populate DT");
return 0; return 0;
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/dma-coherence.h> #include <asm/dma-coherence.h>
...@@ -159,15 +158,3 @@ void __init device_tree_init(void) ...@@ -159,15 +158,3 @@ void __init device_tree_init(void)
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
} }
static int __init plat_of_setup(void)
{
if (!of_have_populated_dt())
panic("Device tree not present");
if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL))
panic("Failed to populate DT");
return 0;
}
arch_initcall(plat_of_setup);
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
*/ */
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <asm/prom.h> #include <asm/prom.h>
...@@ -43,15 +42,3 @@ void __init device_tree_init(void) ...@@ -43,15 +42,3 @@ void __init device_tree_init(void)
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
} }
static int __init plat_of_setup(void)
{
if (!of_have_populated_dt())
panic("Device tree not present");
if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL))
panic("Failed to populate DT");
return 0;
}
arch_initcall(plat_of_setup);
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/of_platform.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/err.h> #include <linux/err.h>
...@@ -39,8 +38,7 @@ static int __init nios2_soc_device_init(void) ...@@ -39,8 +38,7 @@ static int __init nios2_soc_device_init(void)
} }
} }
return of_platform_populate(NULL, of_default_bus_match_table, return 0;
NULL, NULL);
} }
device_initcall(nios2_soc_device_init); device_initcall(nios2_soc_device_init);
...@@ -231,7 +231,7 @@ at24@57 { ...@@ -231,7 +231,7 @@ at24@57 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00"; compatible = "st,m41t00";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -224,7 +224,7 @@ IIC0: i2c@00000000 { ...@@ -224,7 +224,7 @@ IIC0: i2c@00000000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
rtc@68 { rtc@68 {
compatible = "stm,m41t80", "m41st85"; compatible = "st,m41t80", "m41st85";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -279,7 +279,7 @@ IIC0: i2c@ef600700 { ...@@ -279,7 +279,7 @@ IIC0: i2c@ef600700 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
rtc@68 { rtc@68 {
compatible = "stm,m41t80"; compatible = "st,m41t80";
reg = <0x68>; reg = <0x68>;
interrupt-parent = <&UIC0>; interrupt-parent = <&UIC0>;
interrupts = <0x9 0x8>; interrupts = <0x9 0x8>;
......
...@@ -319,7 +319,7 @@ IIC0: i2c@ef600700 { ...@@ -319,7 +319,7 @@ IIC0: i2c@ef600700 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
rtc@68 { rtc@68 {
compatible = "stm,m41t80"; compatible = "st,m41t80";
reg = <0x68>; reg = <0x68>;
interrupt-parent = <&UIC2>; interrupt-parent = <&UIC2>;
interrupts = <0x19 0x8>; interrupts = <0x19 0x8>;
......
...@@ -116,7 +116,7 @@ IIC0: i2c@00000000 { ...@@ -116,7 +116,7 @@ IIC0: i2c@00000000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
rtc@68 { rtc@68 {
compatible = "stm,m41t80", "m41st85"; compatible = "st,m41t80", "m41st85";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -232,7 +232,7 @@ spi@4c0 { ...@@ -232,7 +232,7 @@ spi@4c0 {
mode = "cpu-qe"; mode = "cpu-qe";
serial-flash@0 { serial-flash@0 {
compatible = "stm,m25p40"; compatible = "st,m25p40";
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
}; };
......
...@@ -57,7 +57,7 @@ wm8960:codec@1a { ...@@ -57,7 +57,7 @@ wm8960:codec@1a {
clock-frequency = <12288000>; clock-frequency = <12288000>;
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t62"; compatible = "st,m41t62";
reg = <0x68>; reg = <0x68>;
}; };
adt7461@4c{ adt7461@4c{
......
...@@ -287,7 +287,7 @@ IIC0: i2c@ef600700 { ...@@ -287,7 +287,7 @@ IIC0: i2c@ef600700 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
rtc@68 { rtc@68 {
compatible = "stm,m41t80"; compatible = "st,m41t80";
reg = <0x68>; reg = <0x68>;
interrupt-parent = <&UIC2>; interrupt-parent = <&UIC2>;
interrupts = <0x19 0x8>; interrupts = <0x19 0x8>;
......
...@@ -256,7 +256,7 @@ IIC1: i2c@f0000500 { ...@@ -256,7 +256,7 @@ IIC1: i2c@f0000500 {
#size-cells = <0>; #size-cells = <0>;
rtc@68 { rtc@68 {
compatible = "stm,m41t00"; compatible = "st,m41t00";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -99,7 +99,7 @@ eeprom@50 { ...@@ -99,7 +99,7 @@ eeprom@50 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t62"; compatible = "st,m41t62";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -92,7 +92,7 @@ i2c@3000 { ...@@ -92,7 +92,7 @@ i2c@3000 {
dfsrr; dfsrr;
eeprom: at24@50 { eeprom: at24@50 {
compatible = "st-micro,24c256"; compatible = "st,24c256";
reg = <0x50>; reg = <0x50>;
}; };
......
...@@ -416,7 +416,7 @@ upm@1,0 { ...@@ -416,7 +416,7 @@ upm@1,0 {
gpios = <&qe_pio_e 18 0>; gpios = <&qe_pio_e 18 0>;
flash { flash {
compatible = "stm,nand512-a"; compatible = "st,nand512-a";
}; };
}; };
......
...@@ -103,7 +103,7 @@ eeprom@50 { ...@@ -103,7 +103,7 @@ eeprom@50 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00"; compatible = "st,m41t00";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -196,7 +196,7 @@ IIC0: i2c@ef600700 { ...@@ -196,7 +196,7 @@ IIC0: i2c@ef600700 {
interrupt-parent = <&UIC0>; interrupt-parent = <&UIC0>;
interrupts = <2 4>; interrupts = <2 4>;
rtc@68 { rtc@68 {
compatible = "stm,m41t80"; compatible = "st,m41t80";
reg = <0x68>; reg = <0x68>;
}; };
}; };
......
...@@ -238,7 +238,7 @@ eeprom@54 { ...@@ -238,7 +238,7 @@ eeprom@54 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00", compatible = "st,m41t00",
"dallas,ds1338"; "dallas,ds1338";
reg = <0x68>; reg = <0x68>;
}; };
......
...@@ -130,7 +130,7 @@ eeprom@50 { ...@@ -130,7 +130,7 @@ eeprom@50 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00", compatible = "st,m41t00",
"dallas,ds1338"; "dallas,ds1338";
reg = <0x68>; reg = <0x68>;
}; };
......
...@@ -134,7 +134,7 @@ eeprom@50 { ...@@ -134,7 +134,7 @@ eeprom@50 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00", compatible = "st,m41t00",
"dallas,ds1338"; "dallas,ds1338";
reg = <0x68>; reg = <0x68>;
}; };
......
...@@ -231,7 +231,7 @@ eeprom@54 { ...@@ -231,7 +231,7 @@ eeprom@54 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00", compatible = "st,m41t00",
"dallas,ds1338"; "dallas,ds1338";
reg = <0x68>; reg = <0x68>;
}; };
......
...@@ -267,7 +267,7 @@ eeprom@54 { ...@@ -267,7 +267,7 @@ eeprom@54 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00", compatible = "st,m41t00",
"dallas,ds1338"; "dallas,ds1338";
reg = <0x68>; reg = <0x68>;
}; };
......
...@@ -229,7 +229,7 @@ eeprom@54 { ...@@ -229,7 +229,7 @@ eeprom@54 {
}; };
rtc@68 { rtc@68 {
compatible = "stm,m41t00", compatible = "st,m41t00",
"dallas,ds1338"; "dallas,ds1338";
reg = <0x68>; reg = <0x68>;
}; };
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
*/ */
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_iommu.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
...@@ -180,17 +178,3 @@ void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) ...@@ -180,17 +178,3 @@ void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx)
void __init plat_irq_setup(void) void __init plat_irq_setup(void)
{ {
} }
static int __init sh_of_device_init(void)
{
pr_info("SH generic board support: populating platform devices\n");
if (of_have_populated_dt()) {
of_iommu_init();
of_platform_populate(NULL, of_default_bus_match_table,
NULL, NULL);
} else {
pr_crit("Device tree not populated\n");
}
return 0;
}
arch_initcall_sync(sh_of_device_init);
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
#include <linux/percpu.h> #include <linux/percpu.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/of.h>
#include <linux/of_fdt.h> #include <linux/of_fdt.h>
#include <linux/of_platform.h>
#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE) #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
# include <linux/console.h> # include <linux/console.h>
...@@ -255,7 +255,6 @@ void __init early_init_devtree(void *params) ...@@ -255,7 +255,6 @@ void __init early_init_devtree(void *params)
static int __init xtensa_device_probe(void) static int __init xtensa_device_probe(void)
{ {
of_clk_init(NULL); of_clk_init(NULL);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
return 0; return 0;
} }
......
...@@ -163,9 +163,8 @@ static int __init weim_parse_dt(struct platform_device *pdev, ...@@ -163,9 +163,8 @@ static int __init weim_parse_dt(struct platform_device *pdev,
} }
if (have_child) if (have_child)
ret = of_platform_populate(pdev->dev.of_node, ret = of_platform_default_populate(pdev->dev.of_node,
of_default_bus_match_table, NULL, &pdev->dev);
NULL, &pdev->dev);
if (ret) if (ret)
dev_err(&pdev->dev, "%s fail to create devices.\n", dev_err(&pdev->dev, "%s fail to create devices.\n",
pdev->dev.of_node->full_name); pdev->dev.of_node->full_name);
......
...@@ -257,8 +257,7 @@ static int uniphier_system_bus_probe(struct platform_device *pdev) ...@@ -257,8 +257,7 @@ static int uniphier_system_bus_probe(struct platform_device *pdev)
uniphier_system_bus_set_reg(priv); uniphier_system_bus_set_reg(priv);
/* Now, the bus is configured. Populate platform_devices below it */ /* Now, the bus is configured. Populate platform_devices below it */
return of_platform_populate(dev->of_node, of_default_bus_match_table, return of_platform_default_populate(dev->of_node, NULL, dev);
NULL, dev);
} }
static const struct of_device_id uniphier_system_bus_match[] = { static const struct of_device_id uniphier_system_bus_match[] = {
......
...@@ -174,7 +174,7 @@ const struct iommu_ops *of_iommu_configure(struct device *dev, ...@@ -174,7 +174,7 @@ const struct iommu_ops *of_iommu_configure(struct device *dev,
return NULL; return NULL;
} }
void __init of_iommu_init(void) static int __init of_iommu_init(void)
{ {
struct device_node *np; struct device_node *np;
const struct of_device_id *match, *matches = &__iommu_of_table; const struct of_device_id *match, *matches = &__iommu_of_table;
...@@ -186,4 +186,7 @@ void __init of_iommu_init(void) ...@@ -186,4 +186,7 @@ void __init of_iommu_init(void)
pr_err("Failed to initialise IOMMU %s\n", pr_err("Failed to initialise IOMMU %s\n",
of_node_full_name(np)); of_node_full_name(np));
} }
return 0;
} }
postcore_initcall_sync(of_iommu_init);
...@@ -2134,8 +2134,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, ...@@ -2134,8 +2134,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
/* is child a common bus? */ /* is child a common bus? */
if (of_match_node(of_default_bus_match_table, child)) if (of_match_node(of_default_bus_match_table, child))
/* create children and other common bus children */ /* create children and other common bus children */
if (of_platform_populate(child, of_default_bus_match_table, if (of_platform_default_populate(child, NULL, &pdev->dev))
NULL, &pdev->dev))
goto err_child_fail; goto err_child_fail;
return 0; return 0;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment