Magellan Linux

Annotation of /trunk/kernel26-magellan/patches-2.6.16-r12/0107-2.6.16.12-tipar-oops-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72 - (hide annotations) (download)
Mon Jun 5 09:25:38 2006 UTC (18 years ago) by niro
File size: 1067 byte(s)
ver bump to 2.6.16-r12:
- updated to linux-2.6.16.19
- updated to ck11

1 niro 72 From: Daniel Drake <dsd@gentoo.org>
2     Date: Sun, 23 Apr 2006 22:43:59 +0000 (-0700)
3     Subject: [PATCH] tipar oops fix
4     X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/stable/linux-2.6.16.y.git;a=commitdiff;h=7bd85bfa69293bf17511491d6ee3438956c0d1f9
5    
6     [PATCH] tipar oops fix
7    
8     If compiled into the kernel, parport_register_driver() is called before the
9     parport driver has been initalised.
10    
11     This means that it is expected that tp_count is 0 after the
12     parport_register_driver() call() - tipar's attach function will not be
13     called until later during bootup.
14    
15     Signed-off-by: Daniel Drake <dsd@gentoo.org>
16     Signed-off-by: Andrew Morton <akpm@osdl.org>
17     Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18     ---
19    
20     --- a/drivers/char/tipar.c
21     +++ b/drivers/char/tipar.c
22     @@ -515,7 +515,7 @@ tipar_init_module(void)
23     err = PTR_ERR(tipar_class);
24     goto out_chrdev;
25     }
26     - if (parport_register_driver(&tipar_driver) || tp_count == 0) {
27     + if (parport_register_driver(&tipar_driver)) {
28     printk(KERN_ERR "tipar: unable to register with parport\n");
29     err = -EIO;
30     goto out_class;