diff options
author | Codrin Ciubotariu <codrin.ciubotariu@microchip.com> | 2020-11-03 11:32:46 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-11-19 08:34:22 +0000 |
commit | 4c5840b909f3a12fc5f1275024d0cff6fd23235f (patch) | |
tree | c9bd91e25ecd280d20859a36e5ed78cf2b67393f | |
parent | a233d4ebfc6f5b83ca576331090189686ae22118 (diff) |
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>
-rw-r--r-- | drivers/mfd/at91-usart.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/mfd/at91-usart.c b/drivers/mfd/at91-usart.c index 6a8351a4588e..7f08cb60c58b 100644 --- a/drivers/mfd/at91-usart.c +++ b/drivers/mfd/at91-usart.c @@ -15,15 +15,11 @@ #include <linux/of.h> #include <linux/property.h> -static const struct mfd_cell at91_usart_spi_subdev = { - .name = "at91_usart_spi", - .of_compatible = "microchip,at91sam9g45-usart-spi", -}; +static const struct mfd_cell at91_usart_spi_subdev = + MFD_CELL_NAME("at91_usart_spi"); -static const struct mfd_cell at91_usart_serial_subdev = { - .name = "atmel_usart_serial", - .of_compatible = "atmel,at91rm9200-usart-serial", -}; +static const struct mfd_cell at91_usart_serial_subdev = + MFD_CELL_NAME("atmel_usart_serial"); static int at91_usart_mode_probe(struct platform_device *pdev) { |