|
@@ -1135,10 +1135,6 @@ static int max310x_probe(struct device *dev, int is_spi,
|
|
|
return PTR_ERR(s->regmap);
|
|
return PTR_ERR(s->regmap);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /* Board specific configure */
|
|
|
|
|
- if (s->pdata->init)
|
|
|
|
|
- s->pdata->init();
|
|
|
|
|
-
|
|
|
|
|
/* Check device to ensure we are talking to what we expect */
|
|
/* Check device to ensure we are talking to what we expect */
|
|
|
ret = devtype->detect(dev);
|
|
ret = devtype->detect(dev);
|
|
|
if (ret)
|
|
if (ret)
|
|
@@ -1265,9 +1261,6 @@ static int max310x_remove(struct device *dev)
|
|
|
ret = gpiochip_remove(&s->gpio);
|
|
ret = gpiochip_remove(&s->gpio);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
- if (s->pdata->exit)
|
|
|
|
|
- s->pdata->exit();
|
|
|
|
|
-
|
|
|
|
|
return ret;
|
|
return ret;
|
|
|
}
|
|
}
|
|
|
|
|
|