summaryrefslogtreecommitdiffstats
path: root/drivers/soc/imx/gpcv2.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-07-18 13:48:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-08 16:21:27 +0200
commit1da26bfb9da2d0d0054169b15d90e9a2c85ae902 (patch)
tree876e3428e6433f85df27feeec3d38d68f5ac98e2 /drivers/soc/imx/gpcv2.c
parent2fdb13043f0f75075332a0bb5083dd278430c064 (diff)
downloadbarebox-1da26bfb9da2d0d0054169b15d90e9a2c85ae902.tar.gz
barebox-1da26bfb9da2d0d0054169b15d90e9a2c85ae902.tar.xz
common: don't fixup empty serial/machine_compatible strings
There is no point in fixing up an empty string into the kernel device tree, yet this can happen when globalvar_add_simple_string() is called for the variable at least once as the function replaces NULL with an allocated empty string. globalvar_add_simple_string() was called unconditionally for of.kernel.add_machine_compatible, which in turn led to always fixing up an empty string as the top-most compatible. Resolve this by having barebox_get_(of_machine_compatible|serial_number) return NULL for the empty string as well. Fixes: 81dd24a0946c ("of: add generic of_prepend_machine_compatible()") Fixes: f6756e9ce6f2 ("common: add $global.serial_number with device tree fixup") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220718114824.2632364-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/soc/imx/gpcv2.c')
0 files changed, 0 insertions, 0 deletions