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

ARM: omap1: ams-delta: remove camera leftovers

The obsolete camera support was removed, but a few lines remain in this
file and cause a warning:

arch/arm/mach-omap1/board-ams-delta.c:462:12: warning: 'ams_delta_camera_power' defined but not used [-Wunused-function]
462 | static int ams_delta_camera_power(struct device *dev, int power)

Remove this and all related lines as well.

Fixes: ce548396a433 ("media: mach-omap1: board-ams-delta.c: remove soc_camera dependencies")
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

-11
-11
arch/arm/mach-omap1/board-ams-delta.c
··· 407 407 [LATCH1_PIN_LED_CAMERA] = { 408 408 .name = "camera", 409 409 .default_state = LEDS_GPIO_DEFSTATE_OFF, 410 - #ifdef CONFIG_LEDS_TRIGGERS 411 - .default_trigger = "ams_delta_camera", 412 - #endif 413 410 }, 414 411 [LATCH1_PIN_LED_ADVERT] = { 415 412 .name = "advert", ··· 452 455 { }, 453 456 }, 454 457 }; 455 - 456 - #ifdef CONFIG_LEDS_TRIGGERS 457 - DEFINE_LED_TRIGGER(ams_delta_camera_led_trigger); 458 - #endif 459 458 460 459 static struct platform_device ams_delta_audio_device = { 461 460 .name = "ams-delta-audio", ··· 698 705 omap_register_i2c_bus(1, 100, NULL, 0); 699 706 700 707 omap1_usb_init(&ams_delta_usb_config); 701 - #ifdef CONFIG_LEDS_TRIGGERS 702 - led_trigger_register_simple("ams_delta_camera", 703 - &ams_delta_camera_led_trigger); 704 - #endif 705 708 platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); 706 709 707 710 /*