/[linux-patches]/genpatches-2.6/trunk/2.6.16/2900_tipar-boot-oops.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16/2900_tipar-boot-oops.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 435 - (show annotations) (download) (as text)
Mon Apr 24 14:58:58 2006 UTC (14 years, 7 months ago) by dsd
File MIME type: text/x-diff
File size: 834 byte(s)
Fix boot crash when tipar is compiled-in
1 [PATCH] Fix tipar/parport boot crash
2
3 If compiled into the kernel, parport_register_driver() is called before the
4 parport driver has been initalised.
5
6 This means that it is expected that tp_count is 0 after the
7 parport_register_driver() call() - tipar's attach function will not be called
8 until later during bootup.
9
10 Signed-off-by: Daniel Drake <dsd@gentoo.org>
11
12 --- linux-2.6.17-rc2/drivers/char/tipar.c.orig 2006-04-23 12:03:08.000000000 +0100
13 +++ linux-2.6.17-rc2/drivers/char/tipar.c 2006-04-23 11:42:30.000000000 +0100
14 @@ -515,7 +515,7 @@ tipar_init_module(void)
15 err = PTR_ERR(tipar_class);
16 goto out_chrdev;
17 }
18 - if (parport_register_driver(&tipar_driver) || tp_count == 0) {
19 + if (parport_register_driver(&tipar_driver)) {
20 printk(KERN_ERR "tipar: unable to register with parport\n");
21 err = -EIO;
22 goto out_class;

  ViewVC Help
Powered by ViewVC 1.1.20