|
@@ -277,7 +277,6 @@ static const struct resource ether_resources[] __initconst = {
|
|
|
};
|
|
|
|
|
|
static const struct platform_device_info ether_info __initconst = {
|
|
|
- .parent = &platform_bus,
|
|
|
.name = "r8a7790-ether",
|
|
|
.id = -1,
|
|
|
.res = ether_resources,
|
|
@@ -354,7 +353,6 @@ static void __init lager_add_vin_device(unsigned idx,
|
|
|
struct rcar_vin_platform_data *pdata)
|
|
|
{
|
|
|
struct platform_device_info vin_info = {
|
|
|
- .parent = &platform_bus,
|
|
|
.name = "r8a7790-vin",
|
|
|
.id = idx,
|
|
|
.res = &vin_resources[idx * 2],
|
|
@@ -391,7 +389,7 @@ LAGER_CAMERA(1, "adv7180", 0x20, NULL, RCAR_VIN_BT656);
|
|
|
|
|
|
static void __init lager_add_camera1_device(void)
|
|
|
{
|
|
|
- platform_device_register_data(&platform_bus, "soc-camera-pdrv", 1,
|
|
|
+ platform_device_register_data(NULL, "soc-camera-pdrv", 1,
|
|
|
&cam1_link, sizeof(cam1_link));
|
|
|
lager_add_vin_device(1, &vin1_pdata);
|
|
|
}
|
|
@@ -403,7 +401,6 @@ static const struct resource sata1_resources[] __initconst = {
|
|
|
};
|
|
|
|
|
|
static const struct platform_device_info sata1_info __initconst = {
|
|
|
- .parent = &platform_bus,
|
|
|
.name = "sata-r8a7790",
|
|
|
.id = 1,
|
|
|
.res = sata1_resources,
|
|
@@ -533,7 +530,7 @@ static struct usbhs_private usbhs_priv __initdata = {
|
|
|
static void __init lager_register_usbhs(void)
|
|
|
{
|
|
|
usb_bind_phy("renesas_usbhs", 0, "usb_phy_rcar_gen2");
|
|
|
- platform_device_register_resndata(&platform_bus,
|
|
|
+ platform_device_register_resndata(NULL,
|
|
|
"renesas_usbhs", -1,
|
|
|
usbhs_resources,
|
|
|
ARRAY_SIZE(usbhs_resources),
|
|
@@ -608,7 +605,6 @@ static struct asoc_simple_card_info rsnd_card_info = {
|
|
|
static void __init lager_add_rsnd_device(void)
|
|
|
{
|
|
|
struct platform_device_info cardinfo = {
|
|
|
- .parent = &platform_bus,
|
|
|
.name = "asoc-simple-card",
|
|
|
.id = -1,
|
|
|
.data = &rsnd_card_info,
|
|
@@ -620,7 +616,7 @@ static void __init lager_add_rsnd_device(void)
|
|
|
ARRAY_SIZE(i2c2_devices));
|
|
|
|
|
|
platform_device_register_resndata(
|
|
|
- &platform_bus, "rcar_sound", -1,
|
|
|
+ NULL, "rcar_sound", -1,
|
|
|
rsnd_resources, ARRAY_SIZE(rsnd_resources),
|
|
|
&rsnd_info, sizeof(rsnd_info));
|
|
|
|
|
@@ -663,7 +659,6 @@ static const struct resource pci1_resources[] __initconst = {
|
|
|
};
|
|
|
|
|
|
static const struct platform_device_info pci1_info __initconst = {
|
|
|
- .parent = &platform_bus,
|
|
|
.name = "pci-rcar-gen2",
|
|
|
.id = 1,
|
|
|
.res = pci1_resources,
|
|
@@ -684,7 +679,6 @@ static const struct resource pci2_resources[] __initconst = {
|
|
|
};
|
|
|
|
|
|
static const struct platform_device_info pci2_info __initconst = {
|
|
|
- .parent = &platform_bus,
|
|
|
.name = "pci-rcar-gen2",
|
|
|
.id = 2,
|
|
|
.res = pci2_resources,
|
|
@@ -795,16 +789,16 @@ static void __init lager_add_standard_devices(void)
|
|
|
r8a7790_pinmux_init();
|
|
|
|
|
|
r8a7790_add_standard_devices();
|
|
|
- platform_device_register_data(&platform_bus, "leds-gpio", -1,
|
|
|
+ platform_device_register_data(NULL, "leds-gpio", -1,
|
|
|
&lager_leds_pdata,
|
|
|
sizeof(lager_leds_pdata));
|
|
|
- platform_device_register_data(&platform_bus, "gpio-keys", -1,
|
|
|
+ platform_device_register_data(NULL, "gpio-keys", -1,
|
|
|
&lager_keys_pdata,
|
|
|
sizeof(lager_keys_pdata));
|
|
|
regulator_register_always_on(fixed_regulator_idx++,
|
|
|
"fixed-3.3V", fixed3v3_power_consumers,
|
|
|
ARRAY_SIZE(fixed3v3_power_consumers), 3300000);
|
|
|
- platform_device_register_resndata(&platform_bus, "sh_mmcif", 1,
|
|
|
+ platform_device_register_resndata(NULL, "sh_mmcif", 1,
|
|
|
mmcif1_resources, ARRAY_SIZE(mmcif1_resources),
|
|
|
&mmcif1_pdata, sizeof(mmcif1_pdata));
|
|
|
|
|
@@ -812,27 +806,27 @@ static void __init lager_add_standard_devices(void)
|
|
|
|
|
|
lager_add_du_device();
|
|
|
|
|
|
- platform_device_register_resndata(&platform_bus, "qspi", 0,
|
|
|
+ platform_device_register_resndata(NULL, "qspi", 0,
|
|
|
qspi_resources,
|
|
|
ARRAY_SIZE(qspi_resources),
|
|
|
&qspi_pdata, sizeof(qspi_pdata));
|
|
|
spi_register_board_info(spi_info, ARRAY_SIZE(spi_info));
|
|
|
|
|
|
- platform_device_register_data(&platform_bus, "reg-fixed-voltage", fixed_regulator_idx++,
|
|
|
+ platform_device_register_data(NULL, "reg-fixed-voltage", fixed_regulator_idx++,
|
|
|
&vcc_sdhi0_info, sizeof(struct fixed_voltage_config));
|
|
|
- platform_device_register_data(&platform_bus, "reg-fixed-voltage", fixed_regulator_idx++,
|
|
|
+ platform_device_register_data(NULL, "reg-fixed-voltage", fixed_regulator_idx++,
|
|
|
&vcc_sdhi2_info, sizeof(struct fixed_voltage_config));
|
|
|
|
|
|
- platform_device_register_data(&platform_bus, "gpio-regulator", gpio_regulator_idx++,
|
|
|
+ platform_device_register_data(NULL, "gpio-regulator", gpio_regulator_idx++,
|
|
|
&vccq_sdhi0_info, sizeof(struct gpio_regulator_config));
|
|
|
- platform_device_register_data(&platform_bus, "gpio-regulator", gpio_regulator_idx++,
|
|
|
+ platform_device_register_data(NULL, "gpio-regulator", gpio_regulator_idx++,
|
|
|
&vccq_sdhi2_info, sizeof(struct gpio_regulator_config));
|
|
|
|
|
|
lager_add_camera1_device();
|
|
|
|
|
|
platform_device_register_full(&sata1_info);
|
|
|
|
|
|
- platform_device_register_resndata(&platform_bus, "usb_phy_rcar_gen2",
|
|
|
+ platform_device_register_resndata(NULL, "usb_phy_rcar_gen2",
|
|
|
-1, usbhs_phy_resources,
|
|
|
ARRAY_SIZE(usbhs_phy_resources),
|
|
|
&usbhs_phy_pdata,
|
|
@@ -843,10 +837,10 @@ static void __init lager_add_standard_devices(void)
|
|
|
|
|
|
lager_add_rsnd_device();
|
|
|
|
|
|
- platform_device_register_resndata(&platform_bus, "sh_mobile_sdhi", 0,
|
|
|
+ platform_device_register_resndata(NULL, "sh_mobile_sdhi", 0,
|
|
|
sdhi0_resources, ARRAY_SIZE(sdhi0_resources),
|
|
|
&sdhi0_info, sizeof(struct sh_mobile_sdhi_info));
|
|
|
- platform_device_register_resndata(&platform_bus, "sh_mobile_sdhi", 2,
|
|
|
+ platform_device_register_resndata(NULL, "sh_mobile_sdhi", 2,
|
|
|
sdhi2_resources, ARRAY_SIZE(sdhi2_resources),
|
|
|
&sdhi2_info, sizeof(struct sh_mobile_sdhi_info));
|
|
|
}
|