diff mbox series

soc: renesas: rmobile-sysc: Use of_fwnode_handle() helper

Message ID d49b9fb20d68709b12692558aca91997e6b06fb4.1678272276.git.geert+renesas@glider.be (mailing list archive)
State New, archived
Headers show
Series soc: renesas: rmobile-sysc: Use of_fwnode_handle() helper | expand

Commit Message

Geert Uytterhoeven March 8, 2023, 10:48 a.m. UTC
Use the existing of_fwnode_handle() helper instead of open-coding the
same operation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
To be queued in renesas-devel-for-v6.4.

 drivers/soc/renesas/rmobile-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko March 8, 2023, 4:22 p.m. UTC | #1
On Wed, Mar 08, 2023 at 11:48:17AM +0100, Geert Uytterhoeven wrote:
> Use the existing of_fwnode_handle() helper instead of open-coding the
> same operation.

LGTM,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> To be queued in renesas-devel-for-v6.4.
> 
>  drivers/soc/renesas/rmobile-sysc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/soc/renesas/rmobile-sysc.c b/drivers/soc/renesas/rmobile-sysc.c
> index 204e6135180b919c..728ebac98e14a5cc 100644
> --- a/drivers/soc/renesas/rmobile-sysc.c
> +++ b/drivers/soc/renesas/rmobile-sysc.c
> @@ -343,7 +343,7 @@ static int __init rmobile_init_pm_domains(void)
>  			break;
>  		}
>  
> -		fwnode_dev_initialized(&np->fwnode, true);
> +		fwnode_dev_initialized(of_fwnode_handle(np), true);
>  	}
>  
>  	put_special_pds();
Saravana Kannan March 8, 2023, 8:35 p.m. UTC | #2
On Wed, Mar 8, 2023 at 8:22 AM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> On Wed, Mar 08, 2023 at 11:48:17AM +0100, Geert Uytterhoeven wrote:
> > Use the existing of_fwnode_handle() helper instead of open-coding the
> > same operation.
>
> LGTM,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Saravana Kannan <saravanak@google.com>

-Saravana

>
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > To be queued in renesas-devel-for-v6.4.
> >
> >  drivers/soc/renesas/rmobile-sysc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/soc/renesas/rmobile-sysc.c b/drivers/soc/renesas/rmobile-sysc.c
> > index 204e6135180b919c..728ebac98e14a5cc 100644
> > --- a/drivers/soc/renesas/rmobile-sysc.c
> > +++ b/drivers/soc/renesas/rmobile-sysc.c
> > @@ -343,7 +343,7 @@ static int __init rmobile_init_pm_domains(void)
> >                       break;
> >               }
> >
> > -             fwnode_dev_initialized(&np->fwnode, true);
> > +             fwnode_dev_initialized(of_fwnode_handle(np), true);
> >       }
> >
> >       put_special_pds();
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
diff mbox series

Patch

diff --git a/drivers/soc/renesas/rmobile-sysc.c b/drivers/soc/renesas/rmobile-sysc.c
index 204e6135180b919c..728ebac98e14a5cc 100644
--- a/drivers/soc/renesas/rmobile-sysc.c
+++ b/drivers/soc/renesas/rmobile-sysc.c
@@ -343,7 +343,7 @@  static int __init rmobile_init_pm_domains(void)
 			break;
 		}
 
-		fwnode_dev_initialized(&np->fwnode, true);
+		fwnode_dev_initialized(of_fwnode_handle(np), true);
 	}
 
 	put_special_pds();