summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-08-13 09:36:05 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-14 20:27:17 -0400
commit92f26189b181a65fcb1ff6220a4bf45d44502e4a (patch)
tree4d0d2de89b84b6a20166d757f1187b510b0724e8
parent5d44f4b3484e85c8d4527ecaca5e536da774ae21 (diff)
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: 4edd70c133f3 ("auxdisplay: ks0108: use new parport device model") Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/auxdisplay/ks0108.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/ks0108.c b/drivers/auxdisplay/ks0108.c
index 4c471bd8c2f7..816de9eaac26 100644
--- a/drivers/auxdisplay/ks0108.c
+++ b/drivers/auxdisplay/ks0108.c
@@ -146,6 +146,7 @@ static void ks0108_parport_attach(struct parport *port)
146 goto err_unreg_device; 146 goto err_unreg_device;
147 } 147 }
148 148
149 ks0108_parport = port;
149 ks0108_inited = 1; 150 ks0108_inited = 1;
150 return; 151 return;
151 152
@@ -167,6 +168,7 @@ static void ks0108_parport_detach(struct parport *port)
167 parport_release(ks0108_pardevice); 168 parport_release(ks0108_pardevice);
168 parport_unregister_device(ks0108_pardevice); 169 parport_unregister_device(ks0108_pardevice);
169 ks0108_pardevice = NULL; 170 ks0108_pardevice = NULL;
171 ks0108_parport = NULL;
170} 172}
171 173
172/* 174/*