diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-02 08:45:08 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-02 08:45:08 -0400 |
| commit | 59458f40e25915a355d8b1d701425fe9f4f9ea23 (patch) | |
| tree | f1c9a2934df686e36d75f759ab7313b6f0e0e5f9 /drivers/rtc/rtc-v3020.c | |
| parent | 825f9075d74028d11d7f5932f04e1b5db3022b51 (diff) | |
| parent | d834c16516d1ebec4766fc58c059bf01311e6045 (diff) | |
Merge branch 'master' into gfs2
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; |
