diff options
author | Michael Walle <michael@walle.cc> | 2022-04-04 11:56:03 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2022-06-27 14:51:28 +0800 |
commit | ab3f045774f704c4e7b6a878102f4e9d4ae7bc74 (patch) | |
tree | c3e7a4fbda6153c58eb43ef57150a1403d54511a /drivers/soc/fsl | |
parent | 43b240d41b5173eaebb825f19c423b4278435d2c (diff) | |
download | linux-stable-ab3f045774f704c4e7b6a878102f4e9d4ae7bc74.tar.gz linux-stable-ab3f045774f704c4e7b6a878102f4e9d4ae7bc74.tar.bz2 linux-stable-ab3f045774f704c4e7b6a878102f4e9d4ae7bc74.zip |
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: 34c1c21e94ac ("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>
Diffstat (limited to 'drivers/soc/fsl')
-rw-r--r-- | drivers/soc/fsl/guts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index 5ed2fc1c53a0..be18d46c7b0f 100644 --- a/drivers/soc/fsl/guts.c +++ b/drivers/soc/fsl/guts.c @@ -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 */ |