]> Git Repo - linux.git/commitdiff
rtc: s5m: Remove reference to parent's device pdata
authorKrzysztof Kozlowski <[email protected]>
Tue, 20 Apr 2021 17:02:42 +0000 (19:02 +0200)
committerAlexandre Belloni <[email protected]>
Thu, 29 Apr 2021 21:37:18 +0000 (23:37 +0200)
The S5M RTC driver does not use parent's device (sec-core PMIC driver)
platform data so there is no need to check for it.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/rtc/rtc-s5m.c

index 80b66f16db899f180b13a6b96749c8f68c59f65a..038269a6b08c5518dcb730e8659d93026f953ae0 100644 (file)
@@ -713,16 +713,10 @@ static int s5m8767_rtc_init_reg(struct s5m_rtc_info *info)
 static int s5m_rtc_probe(struct platform_device *pdev)
 {
        struct sec_pmic_dev *s5m87xx = dev_get_drvdata(pdev->dev.parent);
-       struct sec_platform_data *pdata = s5m87xx->pdata;
        struct s5m_rtc_info *info;
        const struct regmap_config *regmap_cfg;
        int ret, alarm_irq;
 
-       if (!pdata) {
-               dev_err(pdev->dev.parent, "Platform data not supplied\n");
-               return -ENODEV;
-       }
-
        info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
        if (!info)
                return -ENOMEM;
This page took 0.04706 seconds and 4 git commands to generate.