提交 e7921202 编写于 作者: S Simon Horman

ARM: shmobile: r8a7779: Do not initialise i2c as an early device

It is sufficient to initialise i2c as a late device.

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 916ddc35
...@@ -333,7 +333,7 @@ static struct platform_device *r8a7779_devices_dt[] __initdata = { ...@@ -333,7 +333,7 @@ static struct platform_device *r8a7779_devices_dt[] __initdata = {
&tmu01_device, &tmu01_device,
}; };
static struct platform_device *r8a7779_early_devices[] __initdata = { static struct platform_device *r8a7779_late_devices[] __initdata = {
&i2c0_device, &i2c0_device,
&i2c1_device, &i2c1_device,
&i2c2_device, &i2c2_device,
...@@ -352,8 +352,8 @@ void __init r8a7779_add_standard_devices(void) ...@@ -352,8 +352,8 @@ void __init r8a7779_add_standard_devices(void)
platform_add_devices(r8a7779_devices_dt, platform_add_devices(r8a7779_devices_dt,
ARRAY_SIZE(r8a7779_devices_dt)); ARRAY_SIZE(r8a7779_devices_dt));
platform_add_devices(r8a7779_early_devices, platform_add_devices(r8a7779_late_devices,
ARRAY_SIZE(r8a7779_early_devices)); ARRAY_SIZE(r8a7779_late_devices));
} }
/* do nothing for !CONFIG_SMP or !CONFIG_HAVE_TWD */ /* do nothing for !CONFIG_SMP or !CONFIG_HAVE_TWD */
...@@ -370,8 +370,6 @@ void __init r8a7779_add_early_devices(void) ...@@ -370,8 +370,6 @@ void __init r8a7779_add_early_devices(void)
{ {
early_platform_add_devices(r8a7779_devices_dt, early_platform_add_devices(r8a7779_devices_dt,
ARRAY_SIZE(r8a7779_devices_dt)); ARRAY_SIZE(r8a7779_devices_dt));
early_platform_add_devices(r8a7779_early_devices,
ARRAY_SIZE(r8a7779_early_devices));
/* Early serial console setup is not included here due to /* Early serial console setup is not included here due to
* memory map collisions. The SCIF serial ports in r8a7779 * memory map collisions. The SCIF serial ports in r8a7779
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册