serial: mxs-auart: put the device in the error path
authorHuang Shijie <b32955@freescale.com>
Tue, 11 Sep 2012 07:30:30 +0000 (15:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 19:21:33 +0000 (12:21 -0700)
The mxs_auart_probe() gets the device by the get_device().
So we should put the device in the error path to balance the
device's reference counter.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found