Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc/tegra: fuse: Define tegra194_soc_attr_group for Tegra241

Tegra241 SoC data uses tegra194_soc_attr_group, which is only defined
if config CONFIG_ARCH_TEGRA_194_SOC or CONFIG_ARCH_TEGRA_234_SOC or
both are enabled. This causes a build failure if both of these configs
are disabled and CONFIG_ARCH_TEGRA_241_SOC is enabled.

Define tegra194_soc_attr_group if CONFIG_ARCH_TEGRA_241_SOC is enabled.

Signed-off-by: Kartik <kkartik@nvidia.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Kartik and committed by
Thierry Reding
7a849d0b 8402074f

+4 -2
+2 -1
drivers/soc/tegra/fuse/fuse-tegra.c
··· 407 407 }; 408 408 409 409 #if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ 410 - IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) 410 + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \ 411 + IS_ENABLED(CONFIG_ARCH_TEGRA_241_SOC) 411 412 static ssize_t platform_show(struct device *dev, struct device_attribute *attr, 412 413 char *buf) 413 414 {
+2 -1
drivers/soc/tegra/fuse/fuse.h
··· 124 124 #endif 125 125 126 126 #if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ 127 - IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) 127 + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \ 128 + IS_ENABLED(CONFIG_ARCH_TEGRA_241_SOC) 128 129 extern const struct attribute_group tegra194_soc_attr_group; 129 130 #endif 130 131