diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-02-22 01:44:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-22 02:22:27 +0100 |
commit | c8a6046e1e0bb03406e4fc6c0a204ef58a1868e4 (patch) | |
tree | c041260ad34e5b5924c6bc5b09e9042e6df77574 /drivers/rtc/rtc-snvs.c | |
parent | rtc-pcf8523: add low battery voltage support (diff) | |
download | linux-c8a6046e1e0bb03406e4fc6c0a204ef58a1868e4.tar.xz linux-c8a6046e1e0bb03406e4fc6c0a204ef58a1868e4.zip |
drivers/rtc: use of_match_ptr() macro
This eliminates having an #ifdef returning NULL for the case when OF is
disabled. Maintains consistency in cases where OF is always selected.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-snvs.c')
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index d5ec7854a651..9b795db3ecce 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -338,7 +338,7 @@ static struct platform_driver snvs_rtc_driver = { .name = "snvs_rtc", .owner = THIS_MODULE, .pm = &snvs_rtc_pm_ops, - .of_match_table = snvs_dt_ids, + .of_match_table = of_match_ptr(snvs_dt_ids), }, .probe = snvs_rtc_probe, .remove = snvs_rtc_remove, |