Skip to content

Commit

Permalink
pinctrl: imx: Disallow driver unbind
Browse files Browse the repository at this point in the history
Performing the 'unbind' operation on pinctrl drivers is
not a sensible usecase, so pass the suppress_bind_attrs
atribute to prevent it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20210328183034.555702-2-festevam@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
fabioestevam authored and linusw committed Apr 8, 2021
1 parent f6b6db2 commit 8a83ecd
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ static struct platform_driver imx1_pinctrl_driver = {
.driver = {
.name = "imx1-pinctrl",
.of_match_table = imx1_pinctrl_of_match,
.suppress_bind_attrs = true,
},
};
builtin_platform_driver_probe(imx1_pinctrl_driver, imx1_pinctrl_probe);
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ static struct platform_driver imx25_pinctrl_driver = {
.driver = {
.name = "imx25-pinctrl",
.of_match_table = imx25_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx25_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ static struct platform_driver imx27_pinctrl_driver = {
.driver = {
.name = "imx27-pinctrl",
.of_match_table = imx27_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx27_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx35.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ static struct platform_driver imx35_pinctrl_driver = {
.driver = {
.name = "imx35-pinctrl",
.of_match_table = imx35_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx35_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx50.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ static struct platform_driver imx50_pinctrl_driver = {
.driver = {
.name = "imx50-pinctrl",
.of_match_table = imx50_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx50_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ static struct platform_driver imx51_pinctrl_driver = {
.driver = {
.name = "imx51-pinctrl",
.of_match_table = imx51_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx51_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx53.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ static struct platform_driver imx53_pinctrl_driver = {
.driver = {
.name = "imx53-pinctrl",
.of_match_table = imx53_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx53_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx6dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ static struct platform_driver imx6dl_pinctrl_driver = {
.driver = {
.name = "imx6dl-pinctrl",
.of_match_table = imx6dl_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx6dl_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx6q.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ static struct platform_driver imx6q_pinctrl_driver = {
.driver = {
.name = "imx6q-pinctrl",
.of_match_table = imx6q_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx6q_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx6sl.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ static struct platform_driver imx6sl_pinctrl_driver = {
.driver = {
.name = "imx6sl-pinctrl",
.of_match_table = imx6sl_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx6sl_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx6sx.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ static struct platform_driver imx6sx_pinctrl_driver = {
.driver = {
.name = "imx6sx-pinctrl",
.of_match_table = imx6sx_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx6sx_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx6ul.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ static struct platform_driver imx6ul_pinctrl_driver = {
.driver = {
.name = "imx6ul-pinctrl",
.of_match_table = imx6ul_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx6ul_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx7d.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ static struct platform_driver imx7d_pinctrl_driver = {
.driver = {
.name = "imx7d-pinctrl",
.of_match_table = imx7d_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx7d_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-imx8mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ static struct platform_driver imx8mp_pinctrl_driver = {
.driver = {
.name = "imx8mp-pinctrl",
.of_match_table = imx8mp_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = imx8mp_pinctrl_probe,
};
Expand Down
1 change: 1 addition & 0 deletions drivers/pinctrl/freescale/pinctrl-vf610.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ static struct platform_driver vf610_pinctrl_driver = {
.driver = {
.name = "vf610-pinctrl",
.of_match_table = vf610_pinctrl_of_match,
.suppress_bind_attrs = true,
},
.probe = vf610_pinctrl_probe,
};
Expand Down

0 comments on commit 8a83ecd

Please sign in to comment.