mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'spear/dt' into next/dt2
* spear/dt: ARM: SPEAr600: Add device-tree support to SPEAr600 boards (update to v3.3-rc7) Conflicts: arch/arm/mach-spear6xx/spear6xx.c arch/arm/mach-vexpress/Kconfig The conflicts are between the previous contents of the next/dt2 branch and upstream changes from v3.3-rc7. Signed-off-by: Arnd Bergmann <[email protected]>
This commit is contained in:
commit
a94c7b0a8f
227 changed files with 1492 additions and 904 deletions
|
|
@ -125,6 +125,13 @@ static int __devinit r9701_probe(struct spi_device *spi)
|
|||
unsigned char tmp;
|
||||
int res;
|
||||
|
||||
tmp = R100CNT;
|
||||
res = read_regs(&spi->dev, &tmp, 1);
|
||||
if (res || tmp != 0x20) {
|
||||
dev_err(&spi->dev, "cannot read RTC register\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
rtc = rtc_device_register("r9701",
|
||||
&spi->dev, &r9701_rtc_ops, THIS_MODULE);
|
||||
if (IS_ERR(rtc))
|
||||
|
|
@ -132,13 +139,6 @@ static int __devinit r9701_probe(struct spi_device *spi)
|
|||
|
||||
dev_set_drvdata(&spi->dev, rtc);
|
||||
|
||||
tmp = R100CNT;
|
||||
res = read_regs(&spi->dev, &tmp, 1);
|
||||
if (res || tmp != 0x20) {
|
||||
rtc_device_unregister(rtc);
|
||||
return res;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue