mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
a02e0a831f
The conditional declaration of ap_uart_data is broken and causes this build error: In file included from arch/arm/mach-integrator/core.c:35:0: arch/arm/mach-integrator/common.h:6:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token Turning the check into an constant-expression if(IS_ENABLED()) statement creates more readable code and solves this problem as well. Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Russell King <linux@arm.linux.org.uk>
8 lines
277 B
C
8 lines
277 B
C
#include <linux/amba/serial.h>
|
|
extern struct amba_pl010_data ap_uart_data;
|
|
void integrator_init_early(void);
|
|
int integrator_init(bool is_cp);
|
|
void integrator_reserve(void);
|
|
void integrator_restart(char, const char *);
|
|
void integrator_init_sysfs(struct device *parent, u32 id);
|