diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-16 11:25:37 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-16 11:55:56 +0100 |
commit | ccf1441db9ca84fb2803a361964a0ffc4165c2d8 (patch) | |
tree | 4412e135a8384986f729d9eeab4d69a8d582654d | |
parent | b2a2aa63f9f1b87b0e6cac0eead3962bb09ee16c (diff) | |
download | linux-ccf1441db9ca84fb2803a361964a0ffc4165c2d8.tar.gz linux-ccf1441db9ca84fb2803a361964a0ffc4165c2d8.tar.bz2 linux-ccf1441db9ca84fb2803a361964a0ffc4165c2d8.zip |
rtc: 88pm860x: remove platform data support
There is no users of the rtc platform data left, remove its support.
Link: https://lore.kernel.org/r/20200316102537.180398-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-88pm860x.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index 88bda3e072d8..cc9b14ef90f1 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c @@ -267,18 +267,15 @@ static int pm860x_rtc_dt_init(struct platform_device *pdev, return 0; } #else -#define pm860x_rtc_dt_init(x, y) (-1) +#define pm860x_rtc_dt_init(x, y) do { } while (0) #endif static int pm860x_rtc_probe(struct platform_device *pdev) { struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); - struct pm860x_rtc_pdata *pdata = NULL; struct pm860x_rtc_info *info; int ret; - pdata = dev_get_platdata(&pdev->dev); - info = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_rtc_info), GFP_KERNEL); if (!info) @@ -328,12 +325,6 @@ static int pm860x_rtc_probe(struct platform_device *pdev) #ifdef VRTC_CALIBRATION /* <00> -- 2.7V, <01> -- 2.9V, <10> -- 3.1V, <11> -- 3.3V */ - if (pm860x_rtc_dt_init(pdev, info)) { - if (pdata && pdata->vrtc) - info->vrtc = pdata->vrtc & 0x3; - else - info->vrtc = 1; - } pm860x_set_bits(info->i2c, PM8607_MEAS_EN2, MEAS2_VRTC, MEAS2_VRTC); /* calibrate VRTC */ |