# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/linux/hotfix-ppc-chrp-nvram.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- # modprobe nvram; nvram --partitions nvram: ERROR: cannot open "/dev/nvram": No such device The CHRP NVRAM backend is always built in, also with CONFIG_NVRAM=m, but carries MODULE_LICENSE() and MODULE_DESCRIPTION(). kbuild therefore lists it in modules.builtin as nvram, the name of the /dev/nvram driver drivers/char/nvram.ko, so modprobe and the char-major-10-144 autoload consider that driver built in and never load it. Drop the module macros from the backend. Signed-off-by: René Rebe diff --git linux-7.3/arch/powerpc/platforms/chrp/nvram.c linux-7.3/arch/powerpc/platforms/chrp/nvram.c index d3bf56a46656..dd0e3bef79b1 100644 --- linux-7.3/arch/powerpc/platforms/chrp/nvram.c +++ linux-7.3/arch/powerpc/platforms/chrp/nvram.c @@ -6,7 +6,6 @@ */ #include -#include #include #include #include @@ -91,6 +90,3 @@ void __init chrp_nvram_init(void) return; } - -MODULE_DESCRIPTION("PPC NVRAM device driver"); -MODULE_LICENSE("GPL v2");