X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-twl4030.c;h=8ce5f74ee45b3b09fe357fb353b5fe607f8bec4e;hb=7c51d57e9d7fbce89f79c41dc8da383101dbe9c6;hp=01d8da9afdc8506f0469a3b8a8c6284b98a235fe;hpb=9a3d8f735eee90bb5b1351983e946bc637041c01;p=linux-2.6-omap-h63xx.git diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c index 01d8da9afdc..8ce5f74ee45 100644 --- a/drivers/rtc/rtc-twl4030.c +++ b/drivers/rtc/rtc-twl4030.c @@ -19,6 +19,7 @@ */ #include +#include #include #include #include @@ -415,8 +416,8 @@ static int __devinit twl4030_rtc_probe(struct platform_device *pdev) int irq = platform_get_irq(pdev, 0); u8 rd_reg; - if (irq < 0) - return irq; + if (irq <= 0) + return -EINVAL; rtc = rtc_device_register(pdev->name, &pdev->dev, &twl4030_rtc_ops, THIS_MODULE);