Commit ab3f0457 authored by Michael Walle's avatar Michael Walle Committed by Shawn Guo
Browse files

soc: fsl: guts: machine variable might be unset



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

Fixes: 34c1c21e ("soc: fsl: fix section mismatch build warnings")
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 43b240d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ static int fsl_guts_probe(struct platform_device *pdev)
	struct device_node *root, *np = pdev->dev.of_node;
	struct device *dev = &pdev->dev;
	const struct fsl_soc_die_attr *soc_die;
	const char *machine;
	const char *machine = NULL;
	u32 svr;

	/* Initialize guts */