summaryrefslogtreecommitdiff
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-01-23 23:55:14 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 00:37:00 (GMT)
commit9d2b7e532da8aadfcc1bd85b62ec5dd853e870e3 (patch)
tree093b6f145151ab967989b9552a8e349396d00168 /drivers/pcmcia
parent7ab26cd1ef817bca74cf82116eaf9eb5fe4a56c7 (diff)
downloadlinux-9d2b7e532da8aadfcc1bd85b62ec5dd853e870e3.tar.xz
rtc: honor device tree /alias entries when assigning IDs
Assign RTC device IDs based on device tree /aliases entries if present, falling back to the existing numbering scheme if there is no /aliases entry (which includes when the system isn't booted using DT), or there is a numbering conflict. This is useful in systems with multiple RTC devices, to ensure that the best RTC device is selected as /dev/rtc0, which provides the overall system time. For example, Tegra has an on-SoC RTC that is not battery backed, typically coupled with an off-SoC RTC that is battery backed. Only the latter is useful for populating the system time, yet the former is useful e.g. for wakeup timing, since the time is not lost when the system is sleeps. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions