[PATCH] tipar oops fix
authorDaniel Drake <dsd@gentoo.org>
Fri, 28 Apr 2006 01:39:19 +0000 (18:39 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 28 Apr 2006 15:33:46 +0000 (08:33 -0700)
commit1ac3836ce689e594b20c7c9855f64a63751c2d10
tree6482a2b6f943a7e08e958428d3ddf6a4dde61ed1
parent13e87ec68641fd54f3fa04eef3419d034ed2115a
[PATCH] tipar oops fix

If compiled into the kernel, parport_register_driver() is called before the
parport driver has been initalised.

This means that it is expected that tp_count is 0 after the
parport_register_driver() call() - tipar's attach function will not be
called until later during bootup.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tipar.c