]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:08 +0000 (14:23 +0200)
commit708e075217399386f2ce96086e1bdcf29bc72bf5
tree5d64f71bfbf4458d989f2b2d30ad2ebb75cf6b89
parentfed69ff187ab669707689281030618b58146b6c5
soc: fsl: guts: machine variable might be unset

[ Upstream commit 167e495de4414cc214dd2ce88e2102791768c8f0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/fsl/guts.c