uio: Simplify uio error path by using devres functions
authorMichal Simek <michal.simek@xilinx.com>
Thu, 12 Sep 2013 05:39:59 +0000 (07:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 15:46:45 +0000 (08:46 -0700)
commite6789cd3dfb553077606ccafeb05e0043f072481
treecb589b8f1a73343a8a67153a75ed9384a9cd0621
parent497b46dbc660d53e94abf8a46cda9747023802ba
uio: Simplify uio error path by using devres functions

Using devres functions simplify driver error path.
- Use devm_kzalloc
- Use devm_request_irq

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c
drivers/uio/uio_pdrv_genirq.c