Commit 5abbeea5 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: at91-can: fix device to driver data mapping for platform devices

In commit:

    3078cde7 can: at91_can: add dt support

device tree support was added to the at91_can driver. In this commit the
mapping of device to driver data was mixed up. This results in the sam9x5
parameters being used for the sam9263 and the workaround for the broken mailbox
0 on the sam9263 not being activated.

This patch fixes the broken platform_device_id table.

Cc: linux-stable <stable@vger.kernel.org>
Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent e3587842
...@@ -1405,10 +1405,10 @@ static int at91_can_remove(struct platform_device *pdev) ...@@ -1405,10 +1405,10 @@ static int at91_can_remove(struct platform_device *pdev)
static const struct platform_device_id at91_can_id_table[] = { static const struct platform_device_id at91_can_id_table[] = {
{ {
.name = "at91_can", .name = "at91sam9x5_can",
.driver_data = (kernel_ulong_t)&at91_at91sam9x5_data, .driver_data = (kernel_ulong_t)&at91_at91sam9x5_data,
}, { }, {
.name = "at91sam9x5_can", .name = "at91_can",
.driver_data = (kernel_ulong_t)&at91_at91sam9263_data, .driver_data = (kernel_ulong_t)&at91_at91sam9263_data,
}, { }, {
/* sentinel */ /* sentinel */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment