Merge branch 'next/fixes-non-critical' into next/drivers
Conflicts: arch/arm/mach-lpc32xx/clock.c arch/arm/mach-pxa/pxa25x.c arch/arm/mach-pxa/pxa27x.c The conflicts with pxa are non-obvious, we have multiple branches adding and removing the same clock settings. According to Haojian Zhuang, removing the sa1100 rtc dummy clock is the correct fix here. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user