mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
drivers/rtc/rtc-ds1742.c: revert "drivers/rtc/rtc-ds1742.c: remove redundant of_match_ptr() helper"
Commit 5516f09717 ("drivers/rtc/rtc-ds1742.c: remove redundant
of_match_ptr() helper") has description as: "'ds1742_rtc_of_match' is
always compiled in. Hence the helper macro is not needed".
It is not true, of_match_ptr() macro makes of_device_id parameter unused
and this constant is declared with __maybe_unused attribute, so normally
this variable should be discarded by linker. This patch revers this
commit, since there are no reason to compile of_device_id constant for
non-DT systems.
Signed-off-by: Alexander Shiyan <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Sachin Kamat <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
441fb76847
commit
3710f597ac
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ static struct platform_driver ds1742_rtc_driver = {
|
|||
.driver = {
|
||||
.name = "rtc-ds1742",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = ds1742_rtc_of_match,
|
||||
.of_match_table = of_match_ptr(ds1742_rtc_of_match),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue