diff options
-rw-r--r-- | drivers/i2c/busses/i2c-at91.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index c02bf208084f..511bd756f280 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c | |||
@@ -413,7 +413,7 @@ static struct at91_twi_pdata * __devinit at91_twi_get_driver_data( | |||
413 | match = of_match_node(atmel_twi_dt_ids, pdev->dev.of_node); | 413 | match = of_match_node(atmel_twi_dt_ids, pdev->dev.of_node); |
414 | if (!match) | 414 | if (!match) |
415 | return NULL; | 415 | return NULL; |
416 | return match->data; | 416 | return (struct at91_twi_pdata *)match->data; |
417 | } | 417 | } |
418 | return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data; | 418 | return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data; |
419 | } | 419 | } |