Re: [PATCH serial v3] sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
From: Dan Carpenter
Date: Mon Mar 11 2019 - 08:19:46 EST
On Mon, Mar 11, 2019 at 05:39:59PM +0800, Mao Wenan wrote:
> Add the missing uart_unregister_driver() and i2c_del_driver() before
> return from sc16is7xx_init() in the error handling case.
> Signed-off-by: Mao Wenan <maowenan@xxxxxxxxxx>
> Reviewed-by: Vladimir Zapolskiy <vz@xxxxxxxxx>
This looks nice. Thanks!
Reviewed-by: Dan Carpeter <dan.carpenter@xxxxxxxxxx>