OpenCloudOS-Kernel/drivers/staging/greybus
Arnd Bergmann 46c6fc133d greybus: arche-ctrl: move device table to its right location
[ Upstream commit 6a0b8c0da8d8d418cde6894a104cf74e6098ddfa ]

The arche-ctrl has two platform drivers and three of_device_id tables,
but one table is only used for the the module loader, while the other
two seem to be associated with their drivers.

This leads to a W=1 warning when the driver is built-in:

drivers/staging/greybus/arche-platform.c:623:34: error: 'arche_combined_id' defined but not used [-Werror=unused-const-variable=]
  623 | static const struct of_device_id arche_combined_id[] = {

Drop the extra table and register both tables that are actually
used as the ones for the module loader instead.

Fixes: 7b62b61c75 ("greybus: arche-ctrl: Don't expose driver internals to arche-platform driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240403080702.3509288-18-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:17 +02:00
..
Documentation
Kconfig
Makefile
TODO
arche-apb-ctrl.c greybus: arche-ctrl: move device table to its right location 2024-06-12 11:12:17 +02:00
arche-platform.c greybus: arche-ctrl: move device table to its right location 2024-06-12 11:12:17 +02:00
arche_platform.h
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c staging: greybus: Avoid abusing controls_rwsem 2023-07-20 10:02:59 +02:00
audio_codec.h staging: greybus: Avoid abusing controls_rwsem 2023-07-20 10:02:59 +02:00
audio_gb.c
audio_helper.c staging: greybus: audio_helper: Use snd_ctl_remove_id() 2023-07-20 10:00:39 +02:00
audio_helper.h
audio_manager.c
audio_manager.h
audio_manager_module.c staging: greybus: Inline gb_audio_manager_module() 2023-03-25 09:54:52 +01:00
audio_manager_private.h
audio_manager_sysfs.c
audio_module.c
audio_topology.c staging: greybus: fix line ending with '(' 2023-03-22 10:09:49 +01:00
authentication.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
bootrom.c
camera.c
firmware.h
fw-core.c staging: greybus: fix alignment of open parenthesis 2023-08-22 15:47:55 +02:00
fw-download.c
fw-management.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
gb-camera.h
gbphy.c
gbphy.h
gpio.c staging: greybus: Inline gpio_chip_to_gb_gpio_controller() 2023-03-25 09:54:52 +01:00
greybus_authentication.h staging: greybus: remove unnecessary blank line 2023-03-25 09:52:51 +01:00
greybus_firmware.h
hid.c
i2c.c
light.c greybus: lights: check return of get_channel_from_mode 2024-06-12 11:12:13 +02:00
log.c
loopback.c drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
power_supply.c
pwm.c pwm: Changes for v6.6-rc1 2023-09-07 18:05:58 -07:00
raw.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
sdio.c
spi.c
spilib.c staging: Replace all spi->chip_select and spi->cs_gpiod references with function call 2023-03-11 12:34:05 +00:00
spilib.h
uart.c tty: make tty_operations::write()'s count size_t 2023-08-11 21:12:46 +02:00
usb.c
vibrator.c drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00