Skip to content

Commit 174ddbc

Browse files
geertugregkh
authored andcommitted
pinctrl: sh-pfc: Update info pointer after SoC-specific init
commit 3091ae775fae17084013021d01513bc1ad274e6a upstream. Update the sh_pfc_soc_info pointer after calling the SoC-specific initialization function, as it may have been updated to e.g. handle different SoC revisions. This makes sure the correct subdriver name is printed later. Fixes: 0c15106 ("sh-pfc: Add support for SoC-specific initialization") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4542452 commit 174ddbc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/pinctrl/sh-pfc/core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ static int sh_pfc_probe(struct platform_device *pdev)
543543
ret = info->ops->init(pfc);
544544
if (ret < 0)
545545
return ret;
546+
547+
/* .init() may have overridden pfc->info */
548+
info = pfc->info;
546549
}
547550

548551
/* Enable dummy states for those platforms without pinctrl support */

0 commit comments

Comments
 (0)