mfd: sec: Remove unused cfg_pmic_irq in platform data
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 26 May 2021 12:47:07 +0000 (08:47 -0400)
committerLee Jones <lee.jones@linaro.org>
Wed, 2 Jun 2021 09:51:18 +0000 (10:51 +0100)
The 'cfg_pmic_irq' field of platform data structure is not used and can
be safely dropped.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sec-core.c
include/linux/mfd/samsung/core.h

index c61c1fc6216552df03b1db8c33a3213de16290da..653d02b98d53d2e7058aff958370239f200baf47 100644 (file)
@@ -382,9 +382,6 @@ static int sec_pmic_probe(struct i2c_client *i2c,
                return ret;
        }
 
-       if (pdata->cfg_pmic_irq)
-               pdata->cfg_pmic_irq();
-
        sec_irq_init(sec_pmic);
 
        pm_runtime_set_active(sec_pmic->dev);
index f1631a39acfc3b65e1dce8692d9883d7b8489eb8..68afc2b97a4195946e5fe17ee78f7f9804e16957 100644 (file)
@@ -85,7 +85,6 @@ struct sec_platform_data {
        int                             num_regulators;
 
        int                             irq_base;
-       int                             (*cfg_pmic_irq)(void);
 
        bool                            wakeup;
        bool                            buck_voltage_lock;