Skip to content

Commit 5e8a380

Browse files
committed
ARM: locomo: fix locomolcd_power declaration
The locomolcd driver has one remaining missing-prototype warning: drivers/video/backlight/locomolcd.c:83:6: error: no previous prototype for 'locomolcd_power' [-Werror=missing-prototypes] There is in fact an unused prototype with a similar name in a global header, so move the actual one there and remove the old one. Link: https://lore.kernel.org/r/20230927194844.680771-1-arnd@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 5106e65 commit 5e8a380

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/arm/include/asm/hardware/locomo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct locomo_driver {
195195

196196
#define LOCOMO_DRIVER_NAME(_ldev) ((_ldev)->dev.driver->name)
197197

198-
void locomo_lcd_power(struct locomo_dev *, int, unsigned int);
198+
extern void locomolcd_power(int on);
199199

200200
int locomo_driver_register(struct locomo_driver *);
201201
void locomo_driver_unregister(struct locomo_driver *);

arch/arm/mach-sa1100/include/mach/collie.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include "hardware.h" /* Gives GPIO_MAX */
1818

19-
extern void locomolcd_power(int on);
20-
2119
#define COLLIE_SCOOP_GPIO_BASE (GPIO_MAX + 1)
2220
#define COLLIE_GPIO_CHARGE_ON (COLLIE_SCOOP_GPIO_BASE + 0)
2321
#define COLLIE_SCP_DIAG_BOOT1 SCOOP_GPCR_PA12

0 commit comments

Comments
 (0)