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:08:08 +0000 (12:08 +0900)
commite7443e576411e4c16b63f68d979a605013b8f8c8
tree5b50b8e56163852ced8dfd9914e5f45bac1c7491
parentbf089b665ab4c8c27daed6259adaa90793970a3a
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