|
@@ -373,7 +373,6 @@ static int m48t59_rtc_probe(struct platform_device *pdev)
|
|
|
struct m48t59_private *m48t59 = NULL;
|
|
|
struct resource *res;
|
|
|
int ret = -ENOMEM;
|
|
|
- char *name;
|
|
|
const struct rtc_class_ops *ops;
|
|
|
struct nvmem_config nvmem_cfg = {
|
|
|
.name = "m48t59-",
|
|
@@ -448,17 +447,14 @@ static int m48t59_rtc_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
switch (pdata->type) {
|
|
|
case M48T59RTC_TYPE_M48T59:
|
|
|
- name = "m48t59";
|
|
|
ops = &m48t59_rtc_ops;
|
|
|
pdata->offset = 0x1ff0;
|
|
|
break;
|
|
|
case M48T59RTC_TYPE_M48T02:
|
|
|
- name = "m48t02";
|
|
|
ops = &m48t02_rtc_ops;
|
|
|
pdata->offset = 0x7f0;
|
|
|
break;
|
|
|
case M48T59RTC_TYPE_M48T08:
|
|
|
- name = "m48t08";
|
|
|
ops = &m48t02_rtc_ops;
|
|
|
pdata->offset = 0x1ff0;
|
|
|
break;
|