diff options
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-v3020.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index a40f400acff6..e28cc4b0901a 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c | |||
@@ -169,9 +169,6 @@ static int rtc_probe(struct platform_device *pdev) | |||
169 | if (pdev->resource[0].flags != IORESOURCE_MEM) | 169 | if (pdev->resource[0].flags != IORESOURCE_MEM) |
170 | return -EBUSY; | 170 | return -EBUSY; |
171 | 171 | ||
172 | if (pdev == NULL) | ||
173 | return -EBUSY; | ||
174 | |||
175 | chip = kzalloc(sizeof *chip, GFP_KERNEL); | 172 | chip = kzalloc(sizeof *chip, GFP_KERNEL); |
176 | if (!chip) | 173 | if (!chip) |
177 | return -ENOMEM; | 174 | return -ENOMEM; |