]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/airport.c
stallion: Use krefs
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / airport.c
index 38fac3bbcd823b0e568fef8729961dac95fd2c3d..ce03a2e865fabafbc6b04b0eee3022a4a6b1a20d 100644 (file)
@@ -149,7 +149,7 @@ static int airport_hard_reset(struct orinoco_private *priv)
        /* Vitally important.  If we don't do this it seems we get an
         * interrupt somewhere during the power cycle, since
         * hw_unavailable is already set it doesn't get ACKed, we get
-        * into an interrupt loop and the the PMU decides to turn us
+        * into an interrupt loop and the PMU decides to turn us
         * off. */
        disable_irq(dev->irq);
 
@@ -180,7 +180,8 @@ airport_attach(struct macio_dev *mdev, const struct of_device_id *match)
        }
 
        /* Allocate space for private device-specific data */
-       dev = alloc_orinocodev(sizeof(*card), airport_hard_reset);
+       dev = alloc_orinocodev(sizeof(*card), &mdev->ofdev.dev,
+                              airport_hard_reset, NULL);
        if (! dev) {
                printk(KERN_ERR PFX "Cannot allocate network device\n");
                return -ENODEV;
@@ -197,7 +198,6 @@ airport_attach(struct macio_dev *mdev, const struct of_device_id *match)
                return -EBUSY;
        }
 
-       SET_MODULE_OWNER(dev);
        SET_NETDEV_DEV(dev, &mdev->ofdev.dev);
 
        macio_set_drvdata(mdev, dev);