Commit 92f26189 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

auxdisplay: ks0108: initialize local parport variable

The local variable ks0108_parport is used by other functions to write to
the parallel port. We missed initializing it when we converted the
driver to use new Parallel Port codes.

Fixes: 4edd70c1 ("auxdisplay: ks0108: use new parport device model")
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d44f4b3
...@@ -146,6 +146,7 @@ static void ks0108_parport_attach(struct parport *port) ...@@ -146,6 +146,7 @@ static void ks0108_parport_attach(struct parport *port)
goto err_unreg_device; goto err_unreg_device;
} }
ks0108_parport = port;
ks0108_inited = 1; ks0108_inited = 1;
return; return;
...@@ -167,6 +168,7 @@ static void ks0108_parport_detach(struct parport *port) ...@@ -167,6 +168,7 @@ static void ks0108_parport_detach(struct parport *port)
parport_release(ks0108_pardevice); parport_release(ks0108_pardevice);
parport_unregister_device(ks0108_pardevice); parport_unregister_device(ks0108_pardevice);
ks0108_pardevice = NULL; ks0108_pardevice = NULL;
ks0108_parport = NULL;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment