mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
Pin control fixes for v6.16:
- Add some missing pins on the Qualcomm QCM2290, along with a managed resources patch that make it clean and nice. - Drop an unused function in the ST Micro driver. - Drop bouncing MAINTAINER entry. - Drop of_match_ptr() macro to rid compile warnings in the TB10x driver. - Fix up calculation of pin numbers from base in the Sunxi driver. -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEElDRnuGcz/wPCXQWMQRCzN7AZXXMFAmhKcTUACgkQQRCzN7AZ XXOKVA/+IueIrMLw89O1XI9acPKD0TdRwsngh4RHu+Nmyqv1wKJzl4n4jbBQpQxR 4xI+NlABwNGh5HqG/BhAmNfmdaJCI9Lv9a9z+dXv3eFGzZtLpdPlqVYysX+KPWqE wQNyK6+8Oq+b5exg4eQiS0DoOpvV+kctQYKze7lFXv6aa9pPaoJKktPiX/l8hL/X 6Wu5F4sY5DS7/q1Iav0eIqU9is+NbGDayjIdmsEEklrTzK5pltx5ux8NLeRG+3Cn rLCrHfqyfskEXXPQJ3lYXysHQJPKtFPhiTTOs/eCA/0JoTfzRXps16mEchhnU2Jd KHCVqp08OjHXJMy+0nYLLzdmIvUwWb3R2RUFfipQMUPTTe1ga6mlVkFHkHQ70X3k MnoIKObpuUpS8n4d1/m6+dh6EpGE7MQKeYDhwFjrJgOzeRweZfKHFZC9v2goj785 dlfnc4YCDp3hpcElaGg7mWe2x4QyQsAGwE80qzgyEm/nVwk0xI8wYIRLZT2KvOa1 mORFj0XdztouEqbpU7HuDqVCmH6Rpf8839O/uVy4OCkLoi+alTBtDCNIqs5cRmuv GtW2ev+uWBqU7TrQj+plkPwwlGsskSmIYqLtncHiXfaerkFDWS9emQC2gb7q2FFW R4RL/IocbKzxyj8SlDfiq9p+WshkTJYSGK19vliuL6OUl40MzpU= =F8kP -----END PGP SIGNATURE----- Merge tag 'pinctrl-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl Pull pin control fixes from Linus Walleij: - Add some missing pins on the Qualcomm QCM2290, along with a managed resources patch that make it clean and nice - Drop an unused function in the ST Micro driver - Drop bouncing MAINTAINER entry - Drop of_match_ptr() macro to rid compile warnings in the TB10x driver - Fix up calculation of pin numbers from base in the Sunxi driver * tag 'pinctrl-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: sunxi: dt: Consider pin base when calculating bank number from pin pinctrl: tb10x: Drop of_match_ptr for ID table pinctrl: MAINTAINERS: Drop bouncing Jianlong Huang pinctrl: st: Drop unused st_gpio_bank() function pinctrl: qcom: pinctrl-qcm2290: Add missing pins pinctrl: qcom: switch to devm_gpiochip_add_data()
This commit is contained in:
commit
9cc7d5904b
|
@ -15,7 +15,7 @@ description: |
|
|||
Some peripherals such as PWM have their I/O go through the 4 "GPIOs".
|
||||
|
||||
maintainers:
|
||||
- Jianlong Huang <jianlong.huang@starfivetech.com>
|
||||
- Hal Feng <hal.feng@starfivetech.com>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
|
|
|
@ -18,7 +18,7 @@ description: |
|
|||
any GPIO can be set up to be controlled by any of the peripherals.
|
||||
|
||||
maintainers:
|
||||
- Jianlong Huang <jianlong.huang@starfivetech.com>
|
||||
- Hal Feng <hal.feng@starfivetech.com>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
|
|
|
@ -23662,7 +23662,6 @@ F: include/dt-bindings/clock/starfive?jh71*.h
|
|||
|
||||
STARFIVE JH71X0 PINCTRL DRIVERS
|
||||
M: Emil Renner Berthing <kernel@esmil.dk>
|
||||
M: Jianlong Huang <jianlong.huang@starfivetech.com>
|
||||
M: Hal Feng <hal.feng@starfivetech.com>
|
||||
L: linux-gpio@vger.kernel.org
|
||||
S: Maintained
|
||||
|
|
|
@ -374,11 +374,6 @@ static struct st_pio_control *st_get_pio_control(
|
|||
}
|
||||
|
||||
/* Low level functions.. */
|
||||
static inline int st_gpio_bank(int gpio)
|
||||
{
|
||||
return gpio/ST_GPIO_PINS_PER_BANK;
|
||||
}
|
||||
|
||||
static inline int st_gpio_pin(int gpio)
|
||||
{
|
||||
return gpio%ST_GPIO_PINS_PER_BANK;
|
||||
|
|
|
@ -823,7 +823,7 @@ static struct platform_driver tb10x_pinctrl_pdrv = {
|
|||
.remove = tb10x_pinctrl_remove,
|
||||
.driver = {
|
||||
.name = "tb10x_pinctrl",
|
||||
.of_match_table = of_match_ptr(tb10x_pinctrl_dt_ids),
|
||||
.of_match_table = tb10x_pinctrl_dt_ids,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -629,7 +629,6 @@ static struct platform_driver apq8064_pinctrl_driver = {
|
|||
.of_match_table = apq8064_pinctrl_of_match,
|
||||
},
|
||||
.probe = apq8064_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init apq8064_pinctrl_init(void)
|
||||
|
|
|
@ -1207,7 +1207,6 @@ static struct platform_driver apq8084_pinctrl_driver = {
|
|||
.of_match_table = apq8084_pinctrl_of_match,
|
||||
},
|
||||
.probe = apq8084_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init apq8084_pinctrl_init(void)
|
||||
|
|
|
@ -710,7 +710,6 @@ static struct platform_driver ipq4019_pinctrl_driver = {
|
|||
.of_match_table = ipq4019_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq4019_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq4019_pinctrl_init(void)
|
||||
|
|
|
@ -754,7 +754,6 @@ static struct platform_driver ipq5018_pinctrl_driver = {
|
|||
.of_match_table = ipq5018_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq5018_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq5018_pinctrl_init(void)
|
||||
|
|
|
@ -834,7 +834,6 @@ static struct platform_driver ipq5332_pinctrl_driver = {
|
|||
.of_match_table = ipq5332_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq5332_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq5332_pinctrl_init(void)
|
||||
|
|
|
@ -791,7 +791,6 @@ static struct platform_driver ipq5424_pinctrl_driver = {
|
|||
.of_match_table = ipq5424_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq5424_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq5424_pinctrl_init(void)
|
||||
|
|
|
@ -1080,7 +1080,6 @@ static struct platform_driver ipq6018_pinctrl_driver = {
|
|||
.of_match_table = ipq6018_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq6018_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq6018_pinctrl_init(void)
|
||||
|
|
|
@ -631,7 +631,6 @@ static struct platform_driver ipq8064_pinctrl_driver = {
|
|||
.of_match_table = ipq8064_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq8064_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq8064_pinctrl_init(void)
|
||||
|
|
|
@ -1041,7 +1041,6 @@ static struct platform_driver ipq8074_pinctrl_driver = {
|
|||
.of_match_table = ipq8074_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq8074_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq8074_pinctrl_init(void)
|
||||
|
|
|
@ -799,7 +799,6 @@ static struct platform_driver ipq9574_pinctrl_driver = {
|
|||
.of_match_table = ipq9574_pinctrl_of_match,
|
||||
},
|
||||
.probe = ipq9574_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init ipq9574_pinctrl_init(void)
|
||||
|
|
|
@ -1059,7 +1059,6 @@ static struct platform_driver mdm9607_pinctrl_driver = {
|
|||
.of_match_table = mdm9607_pinctrl_of_match,
|
||||
},
|
||||
.probe = mdm9607_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init mdm9607_pinctrl_init(void)
|
||||
|
|
|
@ -446,7 +446,6 @@ static struct platform_driver mdm9615_pinctrl_driver = {
|
|||
.of_match_table = mdm9615_pinctrl_of_match,
|
||||
},
|
||||
.probe = mdm9615_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init mdm9615_pinctrl_init(void)
|
||||
|
|
|
@ -1442,7 +1442,7 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl)
|
|||
girq->handler = handle_bad_irq;
|
||||
girq->parents[0] = pctrl->irq;
|
||||
|
||||
ret = gpiochip_add_data(&pctrl->chip, pctrl);
|
||||
ret = devm_gpiochip_add_data(pctrl->dev, &pctrl->chip, pctrl);
|
||||
if (ret) {
|
||||
dev_err(pctrl->dev, "Failed register gpiochip\n");
|
||||
return ret;
|
||||
|
@ -1463,7 +1463,6 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl)
|
|||
dev_name(pctrl->dev), 0, 0, chip->ngpio);
|
||||
if (ret) {
|
||||
dev_err(pctrl->dev, "Failed to add pin range\n");
|
||||
gpiochip_remove(&pctrl->chip);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -1599,13 +1598,5 @@ int msm_pinctrl_probe(struct platform_device *pdev,
|
|||
}
|
||||
EXPORT_SYMBOL(msm_pinctrl_probe);
|
||||
|
||||
void msm_pinctrl_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct msm_pinctrl *pctrl = platform_get_drvdata(pdev);
|
||||
|
||||
gpiochip_remove(&pctrl->chip);
|
||||
}
|
||||
EXPORT_SYMBOL(msm_pinctrl_remove);
|
||||
|
||||
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. TLMM driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
@ -171,6 +171,5 @@ extern const struct dev_pm_ops msm_pinctrl_dev_pm_ops;
|
|||
|
||||
int msm_pinctrl_probe(struct platform_device *pdev,
|
||||
const struct msm_pinctrl_soc_data *soc_data);
|
||||
void msm_pinctrl_remove(struct platform_device *pdev);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -654,7 +654,6 @@ static struct platform_driver msm8226_pinctrl_driver = {
|
|||
.of_match_table = msm8226_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8226_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8226_pinctrl_init(void)
|
||||
|
|
|
@ -981,7 +981,6 @@ static struct platform_driver msm8660_pinctrl_driver = {
|
|||
.of_match_table = msm8660_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8660_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8660_pinctrl_init(void)
|
||||
|
|
|
@ -929,7 +929,6 @@ static struct platform_driver msm8909_pinctrl_driver = {
|
|||
.of_match_table = msm8909_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8909_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8909_pinctrl_init(void)
|
||||
|
|
|
@ -969,7 +969,6 @@ static struct platform_driver msm8916_pinctrl_driver = {
|
|||
.of_match_table = msm8916_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8916_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8916_pinctrl_init(void)
|
||||
|
|
|
@ -1607,7 +1607,6 @@ static struct platform_driver msm8917_pinctrl_driver = {
|
|||
.of_match_table = msm8917_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8917_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8917_pinctrl_init(void)
|
||||
|
|
|
@ -1816,7 +1816,6 @@ static struct platform_driver msm8953_pinctrl_driver = {
|
|||
.of_match_table = msm8953_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8953_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8953_pinctrl_init(void)
|
||||
|
|
|
@ -1246,7 +1246,6 @@ static struct platform_driver msm8960_pinctrl_driver = {
|
|||
.of_match_table = msm8960_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8960_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8960_pinctrl_init(void)
|
||||
|
|
|
@ -1096,7 +1096,6 @@ static struct platform_driver msm8976_pinctrl_driver = {
|
|||
.of_match_table = msm8976_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8976_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8976_pinctrl_init(void)
|
||||
|
|
|
@ -1343,7 +1343,6 @@ static struct platform_driver msm8994_pinctrl_driver = {
|
|||
.of_match_table = msm8994_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8994_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8994_pinctrl_init(void)
|
||||
|
|
|
@ -1920,7 +1920,6 @@ static struct platform_driver msm8996_pinctrl_driver = {
|
|||
.of_match_table = msm8996_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8996_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8996_pinctrl_init(void)
|
||||
|
|
|
@ -1535,7 +1535,6 @@ static struct platform_driver msm8998_pinctrl_driver = {
|
|||
.of_match_table = msm8998_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8998_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8998_pinctrl_init(void)
|
||||
|
|
|
@ -1083,7 +1083,6 @@ static struct platform_driver msm8x74_pinctrl_driver = {
|
|||
.of_match_table = msm8x74_pinctrl_of_match,
|
||||
},
|
||||
.probe = msm8x74_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init msm8x74_pinctrl_init(void)
|
||||
|
|
|
@ -167,6 +167,10 @@ static const struct pinctrl_pin_desc qcm2290_pins[] = {
|
|||
PINCTRL_PIN(62, "GPIO_62"),
|
||||
PINCTRL_PIN(63, "GPIO_63"),
|
||||
PINCTRL_PIN(64, "GPIO_64"),
|
||||
PINCTRL_PIN(65, "GPIO_65"),
|
||||
PINCTRL_PIN(66, "GPIO_66"),
|
||||
PINCTRL_PIN(67, "GPIO_67"),
|
||||
PINCTRL_PIN(68, "GPIO_68"),
|
||||
PINCTRL_PIN(69, "GPIO_69"),
|
||||
PINCTRL_PIN(70, "GPIO_70"),
|
||||
PINCTRL_PIN(71, "GPIO_71"),
|
||||
|
@ -181,12 +185,17 @@ static const struct pinctrl_pin_desc qcm2290_pins[] = {
|
|||
PINCTRL_PIN(80, "GPIO_80"),
|
||||
PINCTRL_PIN(81, "GPIO_81"),
|
||||
PINCTRL_PIN(82, "GPIO_82"),
|
||||
PINCTRL_PIN(83, "GPIO_83"),
|
||||
PINCTRL_PIN(84, "GPIO_84"),
|
||||
PINCTRL_PIN(85, "GPIO_85"),
|
||||
PINCTRL_PIN(86, "GPIO_86"),
|
||||
PINCTRL_PIN(87, "GPIO_87"),
|
||||
PINCTRL_PIN(88, "GPIO_88"),
|
||||
PINCTRL_PIN(89, "GPIO_89"),
|
||||
PINCTRL_PIN(90, "GPIO_90"),
|
||||
PINCTRL_PIN(91, "GPIO_91"),
|
||||
PINCTRL_PIN(92, "GPIO_92"),
|
||||
PINCTRL_PIN(93, "GPIO_93"),
|
||||
PINCTRL_PIN(94, "GPIO_94"),
|
||||
PINCTRL_PIN(95, "GPIO_95"),
|
||||
PINCTRL_PIN(96, "GPIO_96"),
|
||||
|
@ -1125,7 +1134,6 @@ static struct platform_driver qcm2290_pinctrl_driver = {
|
|||
.of_match_table = qcm2290_pinctrl_of_match,
|
||||
},
|
||||
.probe = qcm2290_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init qcm2290_pinctrl_init(void)
|
||||
|
|
|
@ -1644,7 +1644,6 @@ static struct platform_driver qcs404_pinctrl_driver = {
|
|||
.of_match_table = qcs404_pinctrl_of_match,
|
||||
},
|
||||
.probe = qcs404_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init qcs404_pinctrl_init(void)
|
||||
|
|
|
@ -1087,7 +1087,6 @@ static struct platform_driver qcs615_tlmm_driver = {
|
|||
.of_match_table = qcs615_tlmm_of_match,
|
||||
},
|
||||
.probe = qcs615_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init qcs615_tlmm_init(void)
|
||||
|
|
|
@ -1227,7 +1227,6 @@ static struct platform_driver qcs8300_pinctrl_driver = {
|
|||
.of_match_table = qcs8300_pinctrl_of_match,
|
||||
},
|
||||
.probe = qcs8300_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init qcs8300_pinctrl_init(void)
|
||||
|
|
|
@ -145,7 +145,6 @@ static struct platform_driver qdf2xxx_pinctrl_driver = {
|
|||
.acpi_match_table = qdf2xxx_acpi_ids,
|
||||
},
|
||||
.probe = qdf2xxx_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init qdf2xxx_pinctrl_init(void)
|
||||
|
|
|
@ -1248,7 +1248,6 @@ static struct platform_driver qdu1000_tlmm_driver = {
|
|||
.of_match_table = qdu1000_tlmm_of_match,
|
||||
},
|
||||
.probe = qdu1000_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init qdu1000_tlmm_init(void)
|
||||
|
|
|
@ -1540,7 +1540,6 @@ static struct platform_driver sa8775p_pinctrl_driver = {
|
|||
.of_match_table = sa8775p_pinctrl_of_match,
|
||||
},
|
||||
.probe = sa8775p_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sa8775p_pinctrl_init(void)
|
||||
|
|
|
@ -1486,7 +1486,6 @@ static struct platform_driver sar2130p_tlmm_driver = {
|
|||
.of_match_table = sar2130p_tlmm_of_match,
|
||||
},
|
||||
.probe = sar2130p_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sar2130p_tlmm_init(void)
|
||||
|
|
|
@ -1159,7 +1159,6 @@ static struct platform_driver sc7180_pinctrl_driver = {
|
|||
.of_match_table = sc7180_pinctrl_of_match,
|
||||
},
|
||||
.probe = sc7180_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sc7180_pinctrl_init(void)
|
||||
|
|
|
@ -1505,7 +1505,6 @@ static struct platform_driver sc7280_pinctrl_driver = {
|
|||
.of_match_table = sc7280_pinctrl_of_match,
|
||||
},
|
||||
.probe = sc7280_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sc7280_pinctrl_init(void)
|
||||
|
|
|
@ -1720,7 +1720,6 @@ static struct platform_driver sc8180x_pinctrl_driver = {
|
|||
.acpi_match_table = sc8180x_pinctrl_acpi_match,
|
||||
},
|
||||
.probe = sc8180x_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sc8180x_pinctrl_init(void)
|
||||
|
|
|
@ -1926,7 +1926,6 @@ static struct platform_driver sc8280xp_pinctrl_driver = {
|
|||
.of_match_table = sc8280xp_pinctrl_of_match,
|
||||
},
|
||||
.probe = sc8280xp_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sc8280xp_pinctrl_init(void)
|
||||
|
|
|
@ -1442,7 +1442,6 @@ static struct platform_driver sdm660_pinctrl_driver = {
|
|||
.of_match_table = sdm660_pinctrl_of_match,
|
||||
},
|
||||
.probe = sdm660_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sdm660_pinctrl_init(void)
|
||||
|
|
|
@ -1337,7 +1337,6 @@ static struct platform_driver sdm670_pinctrl_driver = {
|
|||
.of_match_table = sdm670_pinctrl_of_match,
|
||||
},
|
||||
.probe = sdm670_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sdm670_pinctrl_init(void)
|
||||
|
|
|
@ -1351,7 +1351,6 @@ static struct platform_driver sdm845_pinctrl_driver = {
|
|||
.acpi_match_table = ACPI_PTR(sdm845_pinctrl_acpi_match),
|
||||
},
|
||||
.probe = sdm845_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sdm845_pinctrl_init(void)
|
||||
|
|
|
@ -990,7 +990,6 @@ static struct platform_driver sdx55_pinctrl_driver = {
|
|||
.of_match_table = sdx55_pinctrl_of_match,
|
||||
},
|
||||
.probe = sdx55_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sdx55_pinctrl_init(void)
|
||||
|
|
|
@ -939,7 +939,6 @@ static struct platform_driver sdx65_pinctrl_driver = {
|
|||
.of_match_table = sdx65_pinctrl_of_match,
|
||||
},
|
||||
.probe = sdx65_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sdx65_pinctrl_init(void)
|
||||
|
|
|
@ -1124,7 +1124,6 @@ static struct platform_driver sdx75_pinctrl_driver = {
|
|||
.of_match_table = sdx75_pinctrl_of_match,
|
||||
},
|
||||
.probe = sdx75_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sdx75_pinctrl_init(void)
|
||||
|
|
|
@ -994,7 +994,6 @@ static struct platform_driver sm4450_tlmm_driver = {
|
|||
.of_match_table = sm4450_tlmm_of_match,
|
||||
},
|
||||
.probe = sm4450_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, sm4450_tlmm_of_match);
|
||||
|
||||
|
|
|
@ -907,7 +907,6 @@ static struct platform_driver sm6115_tlmm_driver = {
|
|||
.of_match_table = sm6115_tlmm_of_match,
|
||||
},
|
||||
.probe = sm6115_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm6115_tlmm_init(void)
|
||||
|
|
|
@ -1266,7 +1266,6 @@ static struct platform_driver sm6125_tlmm_driver = {
|
|||
.of_match_table = sm6125_tlmm_of_match,
|
||||
},
|
||||
.probe = sm6125_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm6125_tlmm_init(void)
|
||||
|
|
|
@ -1373,7 +1373,6 @@ static struct platform_driver sm6350_tlmm_driver = {
|
|||
.of_match_table = sm6350_tlmm_of_match,
|
||||
},
|
||||
.probe = sm6350_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm6350_tlmm_init(void)
|
||||
|
|
|
@ -1516,7 +1516,6 @@ static struct platform_driver sm6375_tlmm_driver = {
|
|||
.of_match_table = sm6375_tlmm_of_match,
|
||||
},
|
||||
.probe = sm6375_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm6375_tlmm_init(void)
|
||||
|
|
|
@ -1255,7 +1255,6 @@ static struct platform_driver sm7150_tlmm_driver = {
|
|||
.of_match_table = sm7150_tlmm_of_match,
|
||||
},
|
||||
.probe = sm7150_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm7150_tlmm_init(void)
|
||||
|
|
|
@ -1542,7 +1542,6 @@ static struct platform_driver sm8150_pinctrl_driver = {
|
|||
.of_match_table = sm8150_pinctrl_of_match,
|
||||
},
|
||||
.probe = sm8150_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8150_pinctrl_init(void)
|
||||
|
|
|
@ -1351,7 +1351,6 @@ static struct platform_driver sm8250_pinctrl_driver = {
|
|||
.of_match_table = sm8250_pinctrl_of_match,
|
||||
},
|
||||
.probe = sm8250_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8250_pinctrl_init(void)
|
||||
|
|
|
@ -1642,7 +1642,6 @@ static struct platform_driver sm8350_tlmm_driver = {
|
|||
.of_match_table = sm8350_tlmm_of_match,
|
||||
},
|
||||
.probe = sm8350_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8350_tlmm_init(void)
|
||||
|
|
|
@ -1677,7 +1677,6 @@ static struct platform_driver sm8450_tlmm_driver = {
|
|||
.of_match_table = sm8450_tlmm_of_match,
|
||||
},
|
||||
.probe = sm8450_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8450_tlmm_init(void)
|
||||
|
|
|
@ -1762,7 +1762,6 @@ static struct platform_driver sm8550_tlmm_driver = {
|
|||
.of_match_table = sm8550_tlmm_of_match,
|
||||
},
|
||||
.probe = sm8550_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8550_tlmm_init(void)
|
||||
|
|
|
@ -1742,7 +1742,6 @@ static struct platform_driver sm8650_tlmm_driver = {
|
|||
.of_match_table = sm8650_tlmm_of_match,
|
||||
},
|
||||
.probe = sm8650_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8650_tlmm_init(void)
|
||||
|
|
|
@ -1711,7 +1711,6 @@ static struct platform_driver sm8750_tlmm_driver = {
|
|||
.of_match_table = sm8750_tlmm_of_match,
|
||||
},
|
||||
.probe = sm8750_tlmm_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init sm8750_tlmm_init(void)
|
||||
|
|
|
@ -1861,7 +1861,6 @@ static struct platform_driver x1e80100_pinctrl_driver = {
|
|||
.of_match_table = x1e80100_pinctrl_of_match,
|
||||
},
|
||||
.probe = x1e80100_pinctrl_probe,
|
||||
.remove = msm_pinctrl_remove,
|
||||
};
|
||||
|
||||
static int __init x1e80100_pinctrl_init(void)
|
||||
|
|
|
@ -143,7 +143,7 @@ static struct sunxi_desc_pin *init_pins_table(struct device *dev,
|
|||
*/
|
||||
static int prepare_function_table(struct device *dev, struct device_node *pnode,
|
||||
struct sunxi_desc_pin *pins, int npins,
|
||||
const u8 *irq_bank_muxes)
|
||||
unsigned pin_base, const u8 *irq_bank_muxes)
|
||||
{
|
||||
struct device_node *node;
|
||||
struct property *prop;
|
||||
|
@ -166,7 +166,7 @@ static int prepare_function_table(struct device *dev, struct device_node *pnode,
|
|||
*/
|
||||
for (i = 0; i < npins; i++) {
|
||||
struct sunxi_desc_pin *pin = &pins[i];
|
||||
int bank = pin->pin.number / PINS_PER_BANK;
|
||||
int bank = (pin->pin.number - pin_base) / PINS_PER_BANK;
|
||||
|
||||
if (irq_bank_muxes[bank]) {
|
||||
pin->variant++;
|
||||
|
@ -211,7 +211,7 @@ static int prepare_function_table(struct device *dev, struct device_node *pnode,
|
|||
last_bank = 0;
|
||||
for (i = 0; i < npins; i++) {
|
||||
struct sunxi_desc_pin *pin = &pins[i];
|
||||
int bank = pin->pin.number / PINS_PER_BANK;
|
||||
int bank = (pin->pin.number - pin_base) / PINS_PER_BANK;
|
||||
int lastfunc = pin->variant + 1;
|
||||
int irq_mux = irq_bank_muxes[bank];
|
||||
|
||||
|
@ -353,7 +353,7 @@ int sunxi_pinctrl_dt_table_init(struct platform_device *pdev,
|
|||
return PTR_ERR(pins);
|
||||
|
||||
ret = prepare_function_table(&pdev->dev, pnode, pins, desc->npins,
|
||||
irq_bank_muxes);
|
||||
desc->pin_base, irq_bank_muxes);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user