]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: fix mx28 detection by rearanging OF match table
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 3 Oct 2013 21:51:55 +0000 (23:51 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 9 Oct 2013 21:02:58 +0000 (23:02 +0200)
commit6f7c7e96275b47c4ef4c2c0eae3717d1bfe472cc
tree221e4a3028ce4b3014184d69ddaa1aa100701acc
parentcd189f8dd3e17888897e86a715d22a5e20851368
can: flexcan: fix mx28 detection by rearanging OF match table

The current implemetation of of_match_device() relies that the of_device_id
table in the driver is sorted from most specific to least specific compatible.

Without this patch the mx28 is detected as the less specific p1010. This leads
to a p1010 specific workaround is activated on the mx28, which is not needed.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c