Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -10
+1 -10
drivers/rtc/rtc-88pm860x.c
··· 267 267 return 0; 268 268 } 269 269 #else 270 - #define pm860x_rtc_dt_init(x, y) (-1) 270 + #define pm860x_rtc_dt_init(x, y) do { } while (0) 271 271 #endif 272 272 273 273 static int pm860x_rtc_probe(struct platform_device *pdev) 274 274 { 275 275 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); 276 - struct pm860x_rtc_pdata *pdata = NULL; 277 276 struct pm860x_rtc_info *info; 278 277 int ret; 279 - 280 - pdata = dev_get_platdata(&pdev->dev); 281 278 282 279 info = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_rtc_info), 283 280 GFP_KERNEL); ··· 325 328 326 329 #ifdef VRTC_CALIBRATION 327 330 /* <00> -- 2.7V, <01> -- 2.9V, <10> -- 3.1V, <11> -- 3.3V */ 328 - if (pm860x_rtc_dt_init(pdev, info)) { 329 - if (pdata && pdata->vrtc) 330 - info->vrtc = pdata->vrtc & 0x3; 331 - else 332 - info->vrtc = 1; 333 - } 334 331 pm860x_set_bits(info->i2c, PM8607_MEAS_EN2, MEAS2_VRTC, MEAS2_VRTC); 335 332 336 333 /* calibrate VRTC */