summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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/*