diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-13 20:13:03 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-03-29 07:41:43 -0400 |
commit | 600abeadf318fbdb25e1e3e4379f6a7bb1952d5b (patch) | |
tree | f01995378964ce69fe3803607b2b72d82fcfcd28 /drivers/i2c/busses/i2c-at91.c | |
parent | 857968434bb6dbda0911f38ec46b0c3d0c963771 (diff) |
i2c: at91: Use of_match_ptr() macro
This eliminates having an #ifdef returning NULL for the case
when OF is disabled.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
-rw-r--r-- | drivers/i2c/busses/i2c-at91.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 75195e3f5ddb..23a1c44be340 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c | |||
@@ -603,8 +603,6 @@ static const struct of_device_id atmel_twi_dt_ids[] = { | |||
603 | } | 603 | } |
604 | }; | 604 | }; |
605 | MODULE_DEVICE_TABLE(of, atmel_twi_dt_ids); | 605 | MODULE_DEVICE_TABLE(of, atmel_twi_dt_ids); |
606 | #else | ||
607 | #define atmel_twi_dt_ids NULL | ||
608 | #endif | 606 | #endif |
609 | 607 | ||
610 | static bool filter(struct dma_chan *chan, void *slave) | 608 | static bool filter(struct dma_chan *chan, void *slave) |
@@ -828,7 +826,7 @@ static struct platform_driver at91_twi_driver = { | |||
828 | .driver = { | 826 | .driver = { |
829 | .name = "at91_i2c", | 827 | .name = "at91_i2c", |
830 | .owner = THIS_MODULE, | 828 | .owner = THIS_MODULE, |
831 | .of_match_table = atmel_twi_dt_ids, | 829 | .of_match_table = of_match_ptr(atmel_twi_dt_ids), |
832 | .pm = at91_twi_pm_ops, | 830 | .pm = at91_twi_pm_ops, |
833 | }, | 831 | }, |
834 | }; | 832 | }; |