]> git.baikalelectronics.ru Git - kernel.git/commit
serial: vt8500: Cleanup code using devm_ function
authorTony Prisk <linux@prisktech.co.nz>
Fri, 18 Jan 2013 02:05:32 +0000 (15:05 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 02:54:33 +0000 (18:54 -0800)
commitbc97670bd7a5c2cc88f7437c1d5602781a3b0e75
tree3256955920819a65de0dfc361f9b8e0cadcf919b
parent4807689b84648df88f49e052734199366d371165
serial: vt8500: Cleanup code using devm_ function

Convert the last memory allocation (vt8500_port) to use devm_kzalloc
and remove the fail path cleanup code from vt8500_serial_probe.

Reorder iomem mapping above clk_enable to simplify fail code. The
clock is only enabled if all other resources are available.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/vt8500_serial.c