serial: mxs-auart: put the device in mxs_auart_probe()
authorHuang Shijie <shijie8@gmail.com>
Fri, 7 Sep 2012 02:38:41 +0000 (22:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:19:50 +0000 (09:19 -0700)
commitb69200fbdf209f356f375da0cfd672f61c7a5866
tree96956f1aa3d20de27068ff9d0f636f58ba0601cf
parent851b714b29db0e394c293170e714f90a778060ad
serial: mxs-auart: put the device in mxs_auart_probe()

We call the get_device() in the mxs_auart_probe().
For the balance of the reference count, we should put the
device in the mxs_auart_remove().

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c