mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Ludovic Desroches <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
857968434b
commit
600abeadf3
1 changed files with 1 additions and 3 deletions
|
|
@ -603,8 +603,6 @@ static const struct of_device_id atmel_twi_dt_ids[] = {
|
|||
}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, atmel_twi_dt_ids);
|
||||
#else
|
||||
#define atmel_twi_dt_ids NULL
|
||||
#endif
|
||||
|
||||
static bool filter(struct dma_chan *chan, void *slave)
|
||||
|
|
@ -828,7 +826,7 @@ static struct platform_driver at91_twi_driver = {
|
|||
.driver = {
|
||||
.name = "at91_i2c",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = atmel_twi_dt_ids,
|
||||
.of_match_table = of_match_ptr(atmel_twi_dt_ids),
|
||||
.pm = at91_twi_pm_ops,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue