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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:31 +0000 (12:05 +0900)
commite350ff50bcd46d650d56015a1416c622d057ec90
tree173871c17288356e7abc4d010cfcb801c8b0d3aa
parent1a64b62db0883ba42db1c3860a8aa25aa398e020
can: flexcan: fix mx28 detection by rearanging OF match table

commit e358784297992b012e8071764d996191dd2b1a54 upstream.

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.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/flexcan.c