]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] scsi/ppa.c cleanup and fixes (3/9)
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 5 Feb 2004 01:45:53 +0000 (17:45 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 5 Feb 2004 01:45:53 +0000 (17:45 -0800)
* killed ppa_pb_claim() call in ppa_init()

drivers/scsi/ppa.c

index d0153e76bdbe61fdea41f7555288c4eeff4238fa..9135f2889dfcbf05079858654f52af2f348d2d18 100644 (file)
@@ -201,12 +201,13 @@ static int ppa_detect(Scsi_Host_Template *host)
                        w_ecr(ppb_hi, 0x80);
 
                /* Done configuration */
-               ppa_pb_release(dev);
 
                if (ppa_init(dev)) {
+                       ppa_pb_release(dev);
                        parport_unregister_device(dev->dev);
                        continue;
                }
+               ppa_pb_release(dev);
                /* now the glue ... */
                switch (dev->mode) {
                case PPA_NIBBLE:
@@ -629,12 +630,6 @@ static int ppa_init(ppa_struct *dev)
        int retv;
        unsigned short ppb = dev->base;
 
-#if defined(CONFIG_PARPORT) || defined(CONFIG_PARPORT_MODULE)
-       if (ppa_pb_claim(dev))
-               while (dev->p_busy)
-                       schedule();     /* We can safe schedule here */
-#endif
-
        ppa_disconnect(dev);
        ppa_connect(dev, CONNECT_NORMAL);
 
@@ -657,7 +652,6 @@ static int ppa_init(ppa_struct *dev)
        if (!retv)
                retv = device_check(dev);
 
-       ppa_pb_release(dev);
        return retv;
 }