[PATCH 2/4 v3] serial: vt8500: ioremap'd resource is never freed

2013-01-16 Thread Tony Prisk
Memory mapped via ioremap call is never released. Rather than add an iounmap call, change allocation function to devm_request_and_ioremap. Also, change the error on failure for this call to -EADDRNOTAVAIL rather than -ENOMEM. Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c |

[PATCH 2/4 v3] serial: vt8500: ioremap'd resource is never freed

2013-01-16 Thread Tony Prisk
Memory mapped via ioremap call is never released. Rather than add an iounmap call, change allocation function to devm_request_and_ioremap. Also, change the error on failure for this call to -EADDRNOTAVAIL rather than -ENOMEM. Signed-off-by: Tony Prisk li...@prisktech.co.nz ---