OSDN Git Service

mfd: at91-usart: Do not use compatible to register child devices
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Tue, 3 Nov 2020 09:32:46 +0000 (11:32 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 19 Nov 2020 08:34:22 +0000 (08:34 +0000)
commit4c5840b909f3a12fc5f1275024d0cff6fd23235f
treec9bd91e25ecd280d20859a36e5ed78cf2b67393f
parenta233d4ebfc6f5b83ca576331090189686ae22118
mfd: at91-usart: Do not use compatible to register child devices

There are no separate serial/SPI devices under the at91-usart MFD, but
actually the MFD is used as a serial or a SPI device. There are no DT
sub-nodes for the MFD children, so we should use platform device API to
register the drivers.

Suggested-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/at91-usart.c