diff options
Diffstat (limited to 'drivers/rtc/rtc-88pm860x.c')
| -rw-r--r-- | drivers/rtc/rtc-88pm860x.c | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index 434285f495e0..4743b16a8d84 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c @@ -328,10 +328,8 @@ static int pm860x_rtc_probe(struct platform_device *pdev)  	if (!info)  		return -ENOMEM;  	info->irq = platform_get_irq(pdev, 0); -	if (info->irq < 0) { -		dev_err(&pdev->dev, "No IRQ resource!\n"); +	if (info->irq < 0)  		return info->irq; -	}  	info->chip = chip;  	info->i2c = (chip->id == CHIP_PM8607) ? chip->client : chip->companion;  |