drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 11 Dec 2020 13:58:46 +0000 (13:58 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 28 Dec 2020 16:58:20 +0000 (17:58 +0100)
commit960ddf70cc11024e6e9dac206316d0160e00a77d
treec3993f3ebc54356e739db1b4c3674c9d129081b6
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs

Since at91_soc_init is called unconditionally from atmel_soc_device_init,
we get the following warning on all non AT91 SoCs:
" AT91: Could not find identification node"

Fix the same by filtering with allowed AT91 SoC list.

Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201211135846.1334322-1-sudeep.holla@arm.com
drivers/soc/atmel/soc.c