]> git.baikalelectronics.ru Git - kernel.git/commit
sc16is7xx: put err_spi and err_i2c into correct #ifdef
authorGuoqing Jiang <gqjiang@suse.com>
Thu, 18 Apr 2019 02:01:55 +0000 (10:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2019 12:09:23 +0000 (14:09 +0200)
commit4e84bc6207824ec015453e8331fec693e0f12bf5
tree328405d8eed2c69ca66fb28b1cc113b4527b6ae0
parent1bd1ad446b3c8aad48a6d258f60bc30b0ea0f538
sc16is7xx: put err_spi and err_i2c into correct #ifdef

err_spi is only called within SERIAL_SC16IS7XX_SPI
while err_i2c is called inside SERIAL_SC16IS7XX_I2C.
So we need to put err_spi and err_i2c into each #ifdef
accordingly.

This change fixes ("sc16is7xx: move label 'err_spi'
to correct section").

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c