Skip to content

Commit 56ec63a

Browse files
lumaglinusw
authored andcommitted
pinctrl: qcom: switch to devm_gpiochip_add_data()
In order to simplify cleanup actions, use devres-enabled version of gpiochip_add_data(). As the msm_pinctrl_remove() function is now empty, drop it and all its calls from the corresponding pinctrl drivers. Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 19272b3 commit 56ec63a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1
-67
lines changed

drivers/pinctrl/qcom/pinctrl-apq8064.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ static struct platform_driver apq8064_pinctrl_driver = {
629629
.of_match_table = apq8064_pinctrl_of_match,
630630
},
631631
.probe = apq8064_pinctrl_probe,
632-
.remove = msm_pinctrl_remove,
633632
};
634633

635634
static int __init apq8064_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-apq8084.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,6 @@ static struct platform_driver apq8084_pinctrl_driver = {
12071207
.of_match_table = apq8084_pinctrl_of_match,
12081208
},
12091209
.probe = apq8084_pinctrl_probe,
1210-
.remove = msm_pinctrl_remove,
12111210
};
12121211

12131212
static int __init apq8084_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq4019.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,6 @@ static struct platform_driver ipq4019_pinctrl_driver = {
710710
.of_match_table = ipq4019_pinctrl_of_match,
711711
},
712712
.probe = ipq4019_pinctrl_probe,
713-
.remove = msm_pinctrl_remove,
714713
};
715714

716715
static int __init ipq4019_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq5018.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,6 @@ static struct platform_driver ipq5018_pinctrl_driver = {
754754
.of_match_table = ipq5018_pinctrl_of_match,
755755
},
756756
.probe = ipq5018_pinctrl_probe,
757-
.remove = msm_pinctrl_remove,
758757
};
759758

760759
static int __init ipq5018_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq5332.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,6 @@ static struct platform_driver ipq5332_pinctrl_driver = {
834834
.of_match_table = ipq5332_pinctrl_of_match,
835835
},
836836
.probe = ipq5332_pinctrl_probe,
837-
.remove = msm_pinctrl_remove,
838837
};
839838

840839
static int __init ipq5332_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq5424.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,6 @@ static struct platform_driver ipq5424_pinctrl_driver = {
791791
.of_match_table = ipq5424_pinctrl_of_match,
792792
},
793793
.probe = ipq5424_pinctrl_probe,
794-
.remove = msm_pinctrl_remove,
795794
};
796795

797796
static int __init ipq5424_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq6018.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,6 @@ static struct platform_driver ipq6018_pinctrl_driver = {
10801080
.of_match_table = ipq6018_pinctrl_of_match,
10811081
},
10821082
.probe = ipq6018_pinctrl_probe,
1083-
.remove = msm_pinctrl_remove,
10841083
};
10851084

10861085
static int __init ipq6018_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq8064.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ static struct platform_driver ipq8064_pinctrl_driver = {
631631
.of_match_table = ipq8064_pinctrl_of_match,
632632
},
633633
.probe = ipq8064_pinctrl_probe,
634-
.remove = msm_pinctrl_remove,
635634
};
636635

637636
static int __init ipq8064_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq8074.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,6 @@ static struct platform_driver ipq8074_pinctrl_driver = {
10411041
.of_match_table = ipq8074_pinctrl_of_match,
10421042
},
10431043
.probe = ipq8074_pinctrl_probe,
1044-
.remove = msm_pinctrl_remove,
10451044
};
10461045

10471046
static int __init ipq8074_pinctrl_init(void)

drivers/pinctrl/qcom/pinctrl-ipq9574.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,6 @@ static struct platform_driver ipq9574_pinctrl_driver = {
799799
.of_match_table = ipq9574_pinctrl_of_match,
800800
},
801801
.probe = ipq9574_pinctrl_probe,
802-
.remove = msm_pinctrl_remove,
803802
};
804803

805804
static int __init ipq9574_pinctrl_init(void)

0 commit comments

Comments
 (0)