Re: CONFIG_PNP_PARPORT

Tim Waugh (tmw20@cam.ac.uk)
Fri, 11 Apr 1997 21:06:25 +0100 (BST)


On Fri, 11 Apr 1997, Bob Tracy - TDS wrote:

> For kernel version 2.1.32

[Ahem, 2.1.33 I expect]

> I note the following configuration inconsistencies/problems... If you
> select "parallel port support" (CONFIG_PNP_PARPORT), it appears that
> you *must* also select "plug and play support" (CONFIG_PNP) and
> "auto-probe for parallel devices" (CONFIG_PNP_PARPORT_AUTOPROBE) if what
> you really want is "parallel printer support" (CONFIG_PRINTER). [snip]
> Unfortunately, all the PNP stuff has to be enabled or I get all kinds of
> undefined symbols in the lp.o driver, and it's possible to arrive at
> that state using several paths :-).

This should fix that -- it was included in a bunch of patches that Phil
Blundell sent to this list not long ago (one of which also fixes a type in
parport_share.c [change ".." to "."]).

Tim.
*/

--- parport_init.c~ Fri Apr 11 17:34:50 1997
+++ parport_init.c Fri Apr 11 17:35:25 1997
@@ -762,8 +762,10 @@
#undef PORT
}

+#ifdef CONFIG_PNP_PARPORT_AUTOPROBE
for (pb = parport_enumerate(); pb; pb = pb->next)
parport_probe_one(pb);
+#endif

return 0;
}