NET: wan/x25_asy, move lapb_unregister to x25_asy_close_tty
NET: wan/x25_asy, move lapb_unregister to x25_asy_close_tty

We register lapb when tty is created, but unregister it only when the
device is UP. So move the lapb_unregister to x25_asy_close_tty after
the device is down.

The old behaviour causes ldisc switching to fail each second attempt,
because we noted for us that the device is unused, so we use it the
second time, but labp layer still have it registered, so it fails
obviously.

Signed-off-by: Jiri Slaby <dfbf39eb5bf303a3db5454d815cb8c8888cbadf9@suse.cz>
Reported-by: Sergey Lapin <55e0ef6055923541f231ae407f9827d92683fa0d@ossfans.org>
Cc: Andrew Hendry <a275891c408c0d842ad018007fb7a6cd946b9c3f@gmail.com>
Tested-by: Sergey Lapin <55e0ef6055923541f231ae407f9827d92683fa0d@ossfans.org>
Tested-by: Mikhail Ulyanov <a3d6a656125862d0623dfed41171569935179245@gmail.com>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas