diff options
Diffstat (limited to 'drivers/rtc/rtc-v3020.c')
| -rw-r--r-- | drivers/rtc/rtc-v3020.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index a40f400acff6..09b714f1cdc3 100644 --- a/drivers/rtc/rtc-v3020.c +++ b/drivers/rtc/rtc-v3020.c | |||
| @@ -149,7 +149,7 @@ static int v3020_set_time(struct device *dev, struct rtc_time *dt) | |||
| 149 | return 0; | 149 | return 0; |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | static struct rtc_class_ops v3020_rtc_ops = { | 152 | static const struct rtc_class_ops v3020_rtc_ops = { |
| 153 | .read_time = v3020_read_time, | 153 | .read_time = v3020_read_time, |
| 154 | .set_time = v3020_set_time, | 154 | .set_time = v3020_set_time, |
| 155 | }; | 155 | }; |
| @@ -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; |
