]> git.baikalelectronics.ru Git - kernel.git/commit
soc: fsl: guts: machine variable might be unset
authorMichael Walle <michael@walle.cc>
Mon, 4 Apr 2022 09:56:03 +0000 (11:56 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Jun 2022 06:51:28 +0000 (14:51 +0800)
commit167e495de4414cc214dd2ce88e2102791768c8f0
treec3e7a4fbda6153c58eb43ef57150a1403d54511a
parente7e56e2478c9693df900fc65ab3501cfd7ae55eb
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: 8e451964a191 ("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>
drivers/soc/fsl/guts.c