[PATCH 20/23] ARM: i.MX: gpt: Add i.MX7 support

Juergen Borleis jbe at pengutronix.de
Mon Jan 16 03:35:03 PST 2017


On Monday 16 January 2017 11:51:05 Sascha Hauer wrote:
> [...]
> diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
> index 8d00bbb3f..b1f59aae2 100644 
> --- a/arch/arm/mach-imx/clocksource.c
> +++ b/arch/arm/mach-imx/clocksource.c
> @@ -155,8 +155,10 @@ static __maybe_unused struct of_device_id
> imx_gpt_dt_ids[] = { .compatible = "fsl,imx6ul-gpt",
>  		.data = &regs_imx31,
>  	}, {
> -		/* sentinel */
> -	}
> +		.compatible = "fsl,imx7d-gpt",
> +		.data = &regs_imx31,
> +	}, {
> +	},
>  };
>
>  static struct platform_device_id imx_gpt_ids[] = {

Hmm, maybe we should keep the "/* sentinel */" to make clear this last entry
in the table is required.

Cheers,
Juergen

-- 
Pengutronix e.K.                             | Juergen Borleis             |
Industrial Linux Solutions                   | http://www.pengutronix.de/  |



More information about the barebox mailing list