]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty/serial: at91: revise the return type of atmel_init_property
authorLeilei Zhao <leilei.zhao@atmel.com>
Fri, 27 Feb 2015 08:07:16 +0000 (16:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:51:47 +0000 (03:51 +0100)
commit4a1e8888675b81d8f118b11650084c5e242be4b7
tree9b6faac8345d3a6e4a3f96614704d64708655ba7
parenta510880f6ea00ee28f22ec61a3c53357bb1bbaa5
tty/serial: at91: revise the return type of atmel_init_property

The function of atmel_init_property is to set the work manner of
atmel serial ports according to the property in device trees.
If DMA or PDC is not set or something goes wrong in getting property,
the work manner will switch to general PIO mode, thus there will
not be any failure case in this function. It's actually a procedure.
So changing the return type from int to void.

Signed-off-by: Leilei Zhao <leilei.zhao@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c