spi: altera: fix driver matching failure of the device ID "spi_altera"
authorXu Yilun <yilun.xu@intel.com>
Wed, 24 Jun 2020 01:31:25 +0000 (09:31 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jun 2020 15:37:46 +0000 (16:37 +0100)
commitde5fd9cb6a3f89a1ac8f27883d029f823112243f
tree87ebfa4bb5c178b6a3ad91ef01cfcd0dbccb64ee
parent7a908832ace7543ca996303928bfed7190dd2cdd
spi: altera: fix driver matching failure of the device ID "spi_altera"

The driver is expected to support device ID "spi_altera" for MMIO accessed
devices, device ID "subdev_spi_altera" for indirect accessed devices. But
the platform bus will not try driver name match anymore if the platform
driver has an id_table. So the "spi_altera" should also be added to
id_table.

Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Link: https://lore.kernel.org/r/1592962286-25752-2-git-send-email-yilun.xu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-altera.c