Skip to content

Commit

Permalink
soc: fsl: guts: machine variable might be unset
Browse files Browse the repository at this point in the history
[ Upstream commit ab3f045 ]

If both the model and the compatible properties are missing, then
machine will not be set. Initialize it with NULL.

Fixes: 34c1c21 ("soc: fsl: fix section mismatch build warnings")
Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
mwalle authored and gregkh committed Aug 17, 2022
1 parent 4d6f338 commit 9abd505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/soc/fsl/guts.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int fsl_guts_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct resource *res;
const struct fsl_soc_die_attr *soc_die;
const char *machine;
const char *machine = NULL;
u32 svr;

/* Initialize guts */
Expand Down

0 comments on commit 9abd505

Please sign in to comment.