diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-05-09 14:17:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-05-09 14:17:06 +0200 |
commit | cc234a70e5c237a9a81c30eb42455f466f095a73 (patch) | |
tree | d0557d8ae6d6d7420dd8d809eeaad59def97a807 /drivers/serial/serial_lpuart.c | |
parent | 531c25972ed2bfa7e2eb3cf7ac5f7cd068b8b01b (diff) | |
parent | 0f73d8fb36ec9b51cea9f78aa66a138b4a361cd0 (diff) | |
download | barebox-cc234a70e5c237a9a81c30eb42455f466f095a73.tar.gz barebox-cc234a70e5c237a9a81c30eb42455f466f095a73.tar.xz |
Merge branch 'for-next/serdev'
Diffstat (limited to 'drivers/serial/serial_lpuart.c')
-rw-r--r-- | drivers/serial/serial_lpuart.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index 8f87f7b9cb..f28035a326 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -189,18 +189,6 @@ err_free: return ret; } -static void lpuart_serial_remove(struct device_d *dev) -{ - struct lpuart *lpuart = dev->priv; - - lpuart_serial_flush(&lpuart->cdev); - console_unregister(&lpuart->cdev); - release_region(lpuart->io); - clk_put(lpuart->clk); - - free(lpuart); -} - static struct of_device_id lpuart_serial_dt_ids[] = { { .compatible = "fsl,vf610-lpuart" }, {} @@ -209,7 +197,6 @@ static struct of_device_id lpuart_serial_dt_ids[] = { static struct driver_d lpuart_serial_driver = { .name = "lpuart-serial", .probe = lpuart_serial_probe, - .remove = lpuart_serial_remove, .of_compatible = DRV_OF_COMPAT(lpuart_serial_dt_ids), }; console_platform_driver(lpuart_serial_driver); |