diff mbox series

clk: imx: imx8ulp: set suppress_bind_attrs to true

Message ID 20211012100132.17829-1-peng.fan@oss.nxp.com (mailing list archive)
State New, archived
Headers show
Series clk: imx: imx8ulp: set suppress_bind_attrs to true | expand

Commit Message

Peng Fan (OSS) Oct. 12, 2021, 10:01 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

Disable bind attributes, the clocks will not removed.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/clk/imx/clk-imx8ulp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stephen Boyd Oct. 14, 2021, 11:38 p.m. UTC | #1
Quoting Peng Fan (OSS) (2021-10-12 03:01:32)
> From: Peng Fan <peng.fan@nxp.com>
> 
> Disable bind attributes, the clocks will not removed.

Great! Why?

> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  drivers/clk/imx/clk-imx8ulp.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/imx/clk-imx8ulp.c b/drivers/clk/imx/clk-imx8ulp.c
> index 6699437e17b8..8eb1af2d6429 100644
> --- a/drivers/clk/imx/clk-imx8ulp.c
> +++ b/drivers/clk/imx/clk-imx8ulp.c
> @@ -559,6 +559,7 @@ static struct platform_driver imx8ulp_clk_driver = {
>         .probe  = imx8ulp_clk_probe,
>         .driver = {
>                 .name           = KBUILD_MODNAME,
> +               .suppress_bind_attrs = true,
>                 .of_match_table = imx8ulp_clk_dt_ids,
>         },
>  };
diff mbox series

Patch

diff --git a/drivers/clk/imx/clk-imx8ulp.c b/drivers/clk/imx/clk-imx8ulp.c
index 6699437e17b8..8eb1af2d6429 100644
--- a/drivers/clk/imx/clk-imx8ulp.c
+++ b/drivers/clk/imx/clk-imx8ulp.c
@@ -559,6 +559,7 @@  static struct platform_driver imx8ulp_clk_driver = {
 	.probe	= imx8ulp_clk_probe,
 	.driver = {
 		.name		= KBUILD_MODNAME,
+		.suppress_bind_attrs = true,
 		.of_match_table	= imx8ulp_clk_dt_ids,
 	},
 };