summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-efi.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-08-09 01:20:07 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 02:57:19 +0400
commit3710f597aca5af4f605cda9793a8b2f0a42bc29a (patch)
tree2048f1da7e7038345d37b554894b62ddcd0e812d /drivers/rtc/rtc-efi.c
parent441fb7684782be3553c67dc04defcf304b999bba (diff)
downloadlinux-3710f597aca5af4f605cda9793a8b2f0a42bc29a.tar.xz
drivers/rtc/rtc-ds1742.c: revert "drivers/rtc/rtc-ds1742.c: remove redundant of_match_ptr() helper"
Commit 5516f0971793 ("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 <shc_work@mail.ru> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-efi.c')
0 files changed, 0 insertions, 0 deletions