Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: imx: Disallow driver unbind

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>

authored by

Fabio Estevam and committed by
Linus Walleij
8a83ecd8 f6b6db2d

+15
+1
drivers/pinctrl/freescale/pinctrl-imx1.c
··· 262 262 .driver = { 263 263 .name = "imx1-pinctrl", 264 264 .of_match_table = imx1_pinctrl_of_match, 265 + .suppress_bind_attrs = true, 265 266 }, 266 267 }; 267 268 builtin_platform_driver_probe(imx1_pinctrl_driver, imx1_pinctrl_probe);
+1
drivers/pinctrl/freescale/pinctrl-imx25.c
··· 324 324 .driver = { 325 325 .name = "imx25-pinctrl", 326 326 .of_match_table = imx25_pinctrl_of_match, 327 + .suppress_bind_attrs = true, 327 328 }, 328 329 .probe = imx25_pinctrl_probe, 329 330 };
+1
drivers/pinctrl/freescale/pinctrl-imx27.c
··· 397 397 .driver = { 398 398 .name = "imx27-pinctrl", 399 399 .of_match_table = imx27_pinctrl_of_match, 400 + .suppress_bind_attrs = true, 400 401 }, 401 402 .probe = imx27_pinctrl_probe, 402 403 };
+1
drivers/pinctrl/freescale/pinctrl-imx35.c
··· 1014 1014 .driver = { 1015 1015 .name = "imx35-pinctrl", 1016 1016 .of_match_table = imx35_pinctrl_of_match, 1017 + .suppress_bind_attrs = true, 1017 1018 }, 1018 1019 .probe = imx35_pinctrl_probe, 1019 1020 };
+1
drivers/pinctrl/freescale/pinctrl-imx50.c
··· 400 400 .driver = { 401 401 .name = "imx50-pinctrl", 402 402 .of_match_table = imx50_pinctrl_of_match, 403 + .suppress_bind_attrs = true, 403 404 }, 404 405 .probe = imx50_pinctrl_probe, 405 406 };
+1
drivers/pinctrl/freescale/pinctrl-imx51.c
··· 776 776 .driver = { 777 777 .name = "imx51-pinctrl", 778 778 .of_match_table = imx51_pinctrl_of_match, 779 + .suppress_bind_attrs = true, 779 780 }, 780 781 .probe = imx51_pinctrl_probe, 781 782 };
+1
drivers/pinctrl/freescale/pinctrl-imx53.c
··· 463 463 .driver = { 464 464 .name = "imx53-pinctrl", 465 465 .of_match_table = imx53_pinctrl_of_match, 466 + .suppress_bind_attrs = true, 466 467 }, 467 468 .probe = imx53_pinctrl_probe, 468 469 };
+1
drivers/pinctrl/freescale/pinctrl-imx6dl.c
··· 473 473 .driver = { 474 474 .name = "imx6dl-pinctrl", 475 475 .of_match_table = imx6dl_pinctrl_of_match, 476 + .suppress_bind_attrs = true, 476 477 }, 477 478 .probe = imx6dl_pinctrl_probe, 478 479 };
+1
drivers/pinctrl/freescale/pinctrl-imx6q.c
··· 475 475 .driver = { 476 476 .name = "imx6q-pinctrl", 477 477 .of_match_table = imx6q_pinctrl_of_match, 478 + .suppress_bind_attrs = true, 478 479 }, 479 480 .probe = imx6q_pinctrl_probe, 480 481 };
+1
drivers/pinctrl/freescale/pinctrl-imx6sl.c
··· 379 379 .driver = { 380 380 .name = "imx6sl-pinctrl", 381 381 .of_match_table = imx6sl_pinctrl_of_match, 382 + .suppress_bind_attrs = true, 382 383 }, 383 384 .probe = imx6sl_pinctrl_probe, 384 385 };
+1
drivers/pinctrl/freescale/pinctrl-imx6sx.c
··· 383 383 .driver = { 384 384 .name = "imx6sx-pinctrl", 385 385 .of_match_table = imx6sx_pinctrl_of_match, 386 + .suppress_bind_attrs = true, 386 387 }, 387 388 .probe = imx6sx_pinctrl_probe, 388 389 };
+1
drivers/pinctrl/freescale/pinctrl-imx6ul.c
··· 343 343 .driver = { 344 344 .name = "imx6ul-pinctrl", 345 345 .of_match_table = imx6ul_pinctrl_of_match, 346 + .suppress_bind_attrs = true, 346 347 }, 347 348 .probe = imx6ul_pinctrl_probe, 348 349 };
+1
drivers/pinctrl/freescale/pinctrl-imx7d.c
··· 387 387 .driver = { 388 388 .name = "imx7d-pinctrl", 389 389 .of_match_table = imx7d_pinctrl_of_match, 390 + .suppress_bind_attrs = true, 390 391 }, 391 392 .probe = imx7d_pinctrl_probe, 392 393 };
+1
drivers/pinctrl/freescale/pinctrl-imx8mp.c
··· 336 336 .driver = { 337 337 .name = "imx8mp-pinctrl", 338 338 .of_match_table = imx8mp_pinctrl_of_match, 339 + .suppress_bind_attrs = true, 339 340 }, 340 341 .probe = imx8mp_pinctrl_probe, 341 342 };
+1
drivers/pinctrl/freescale/pinctrl-vf610.c
··· 336 336 .driver = { 337 337 .name = "vf610-pinctrl", 338 338 .of_match_table = vf610_pinctrl_of_match, 339 + .suppress_bind_attrs = true, 339 340 }, 340 341 .probe = vf610_pinctrl_probe, 341 342 };