Skip to content

Commit

Permalink
auxdisplay: ks0108: initialize local parport variable
Browse files Browse the repository at this point in the history
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: 4edd70c ("auxdisplay: ks0108: use new parport device model")
Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and gregkh committed Aug 15, 2015
1 parent 5d44f4b commit 92f2618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/auxdisplay/ks0108.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ static void ks0108_parport_attach(struct parport *port)
goto err_unreg_device;
}

ks0108_parport = port;
ks0108_inited = 1;
return;

Expand All @@ -167,6 +168,7 @@ static void ks0108_parport_detach(struct parport *port)
parport_release(ks0108_pardevice);
parport_unregister_device(ks0108_pardevice);
ks0108_pardevice = NULL;
ks0108_parport = NULL;
}

/*
Expand Down

0 comments on commit 92f2618

Please sign in to comment.