staging: dgap: fix kernel oops on port open
authorMark Hounschell <markh@compro.net>
Wed, 26 Feb 2014 15:18:26 +0000 (10:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2014 20:58:16 +0000 (12:58 -0800)
commit6c8b84efe51073b11ffddf992a7b5a2059a53c14
treec4471a715ee8a0bddb877281cd356b16d5d336d9
parentd7a078b827a8e4740fe7b16112e077ee33a2ed36
staging: dgap: fix kernel oops on port open

This patch addresses the follow error message followed
by a kernel oops:

dgap: driver does not set tty->port. This will crash the kernel later. Fix the driver

It also renames the main function this patch addresses because
its name is misleading.

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c
drivers/staging/dgap/dgap.h