brcm2708: rename all patches from raspberrypi git tree to use 950 prefix
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.9 / 950-0022-rtc-Add-SPI-alias-for-pcf2123-driver.patch
1 From ffa1e97926ba3e22f7e41e2b5e16737461bf31ae Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 15 Jun 2016 16:48:41 +0100
4 Subject: [PATCH] rtc: Add SPI alias for pcf2123 driver
5
6 Without this alias, Device Tree won't cause the driver
7 to be loaded.
8
9 See: https://github.com/raspberrypi/linux/pull/1510
10 ---
11 drivers/rtc/rtc-pcf2123.c | 1 +
12 1 file changed, 1 insertion(+)
13
14 --- a/drivers/rtc/rtc-pcf2123.c
15 +++ b/drivers/rtc/rtc-pcf2123.c
16 @@ -472,3 +472,4 @@ module_spi_driver(pcf2123_driver);
17 MODULE_AUTHOR("Chris Verges <chrisv@cyberswitching.com>");
18 MODULE_DESCRIPTION("NXP PCF2123 RTC driver");
19 MODULE_LICENSE("GPL");
20 +MODULE_ALIAS("spi:rtc-pcf2123");