[PATCH 5/5] ARM: shmobile: kzm9g: Trim reference DT_MACHINE_START

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Sun Feb 17 19:58:46 EST 2013


Hi Simon

> Remove .init_late and .restart from DT_MACHINE_START
> for kzm9g reference as these are not necessary to
> bring the board up which is the main aim of kzm9g reference.

Does this mean that we will have "full spec kzm9g DT base" code in the future,
and then, "kzm9g reference" code will be deleted ?

> Signed-off-by: Simon Horman <horms+renesas at verge.net.au>
> ---
>  arch/arm/mach-shmobile/board-kzm9g-reference.c |    9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c b/arch/arm/mach-shmobile/board-kzm9g-reference.c
> index b9e40b6..836070a 100644
> --- a/arch/arm/mach-shmobile/board-kzm9g-reference.c
> +++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c
> @@ -87,13 +87,6 @@ static void __init kzm_init(void)
>  #endif
>  }
>  
> -static void kzm9g_restart(char mode, const char *cmd)
> -{
> -#define RESCNT2 IOMEM(0xe6188020)
> -	/* Do soft power on reset */
> -	writel((1 << 31), RESCNT2);
> -}
> -
>  static const char *kzm9g_boards_compat_dt[] __initdata = {
>  	"renesas,kzm9g-reference",
>  	NULL,
> @@ -106,8 +99,6 @@ DT_MACHINE_START(KZM9G_DT, "kzm9g-reference")
>  	.nr_irqs	= NR_IRQS_LEGACY,
>  	.init_irq	= irqchip_init,
>  	.init_machine	= kzm_init,
> -	.init_late	= shmobile_init_late,
>  	.init_time	= shmobile_timer_init,
> -	.restart	= kzm9g_restart,
>  	.dt_compat	= kzm9g_boards_compat_dt,
>  MACHINE_END
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Best regards
---
Kuninori Morimoto



More information about the linux-arm-kernel mailing list