From: Laxman Dewangan Date: Fri, 9 Nov 2012 09:07:32 +0000 (+0530) Subject: spi: tegra: sequence compatible strings as per preference X-Git-Tag: firefly_0821_release~3680^2~1459^2~10^2~4^3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=24bc89716163b4e30c1b71c9f4bd020387b13c96;p=firefly-linux-kernel-4.4.55.git spi: tegra: sequence compatible strings as per preference Sequence compatible list for tegra20-slink driver to first look for Tegra30 and then Tegra20. Tegra30 have additional feature in HW which need to be utilize if it is provided from DT. Signed-off-by: Laxman Dewangan Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 07dc7359fb12..7882b50329e2 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1109,8 +1109,8 @@ const struct tegra_slink_chip_data tegra20_spi_cdata = { }; static struct of_device_id tegra_slink_of_match[] __devinitconst = { - { .compatible = "nvidia,tegra20-slink", .data = &tegra20_spi_cdata, }, { .compatible = "nvidia,tegra30-slink", .data = &tegra30_spi_cdata, }, + { .compatible = "nvidia,tegra20-slink", .data = &tegra20_spi_cdata, }, {} }; MODULE_DEVICE_TABLE(of, tegra_slink_of_match);