Skip to content

Commit

Permalink
sh: Early Platform Data for SuperH Mobile
Browse files Browse the repository at this point in the history
Use plat_early_device_setup() to register Early Platform Data
for SuperH Mobile processors.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Apr 19, 2009
1 parent 87a00dc commit 28fde68
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/sh/kernel/cpu/sh4a/setup-sh7343.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ static int __init sh7343_devices_setup(void)
}
__initcall(sh7343_devices_setup);

static struct platform_device *sh7343_early_devices[] __initdata = {
&cmt_device,
};

void __init plat_early_device_setup(void)
{
early_platform_add_devices(sh7343_early_devices,
ARRAY_SIZE(sh7343_early_devices));
}

enum {
UNUSED = 0,

Expand Down
10 changes: 10 additions & 0 deletions arch/sh/kernel/cpu/sh4a/setup-sh7366.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ static int __init sh7366_devices_setup(void)
}
__initcall(sh7366_devices_setup);

static struct platform_device *sh7366_early_devices[] __initdata = {
&cmt_device,
};

void __init plat_early_device_setup(void)
{
early_platform_add_devices(sh7366_early_devices,
ARRAY_SIZE(sh7366_early_devices));
}

enum {
UNUSED=0,

Expand Down
10 changes: 10 additions & 0 deletions arch/sh/kernel/cpu/sh4a/setup-sh7722.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,16 @@ static int __init sh7722_devices_setup(void)
}
__initcall(sh7722_devices_setup);

static struct platform_device *sh7722_early_devices[] __initdata = {
&cmt_device,
};

void __init plat_early_device_setup(void)
{
early_platform_add_devices(sh7722_early_devices,
ARRAY_SIZE(sh7722_early_devices));
}

enum {
UNUSED=0,

Expand Down
10 changes: 10 additions & 0 deletions arch/sh/kernel/cpu/sh4a/setup-sh7723.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,16 @@ static int __init sh7723_devices_setup(void)
}
__initcall(sh7723_devices_setup);

static struct platform_device *sh7723_early_devices[] __initdata = {
&cmt_device,
};

void __init plat_early_device_setup(void)
{
early_platform_add_devices(sh7723_early_devices,
ARRAY_SIZE(sh7723_early_devices));
}

enum {
UNUSED=0,

Expand Down

0 comments on commit 28fde68

Please sign in to comment.