提交 9de4153d 编写于 作者: A Arnd Bergmann 提交者: Greg Kroah-Hartman

serial: pxa2xx: remove __deprecated annotation

An otherwise very nice cleanup of the pxa2xx uart support marked the
init function of this driver as __deprecated:

drivers/tty/serial/pxa.c:944:1: error: 'serial_pxa_init' is deprecated [-Werror=deprecated-declarations]

This seems unhelpful to me, as we now warn for every allmodconfig build,
which is otherwise free of warnings on most architectures. Let's
remove the annotation again.

Fixes: ab28f51c ("serial: rewrite pxa2xx-uart to use 8250_core")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 68832b20
......@@ -927,7 +927,7 @@ static struct platform_driver serial_pxa_driver = {
/* 8250 driver for PXA serial ports should be used */
static int __deprecated __init serial_pxa_init(void)
static int __init serial_pxa_init(void)
{
int ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册