drivers: uart_pl011: Fix unused variable warning
Fix GCC complain when CONFIG_UART_INTERRUPT_DRIVEN=n warning: unused variable ‘config’ [-Wunused-variable] Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
063ab90dd8
commit
6148b5bd9e
1 changed files with 1 additions and 2 deletions
|
@ -354,7 +354,6 @@ static int pl011_init(struct device *dev)
|
|||
{
|
||||
int ret;
|
||||
u32_t lcrh;
|
||||
const struct uart_device_config *config = dev->config->config_info;
|
||||
|
||||
/* disable the uart */
|
||||
pl011_disable(dev);
|
||||
|
@ -387,7 +386,7 @@ static int pl011_init(struct device *dev)
|
|||
__ISB();
|
||||
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
config->irq_config_func(dev);
|
||||
DEV_CFG(dev)->irq_config_func(dev);
|
||||
#endif
|
||||
pl011_enable(dev);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue