powerpc/macio: Fix probing of macio devices by using the right of match table
[sfrench/cifs-2.6.git] / arch / powerpc / include / asm / macio.h
index a062c57696d080b99ae231a70a443ee075e443fc..675e159b5ef42decbf2617870963547f07016870 100644 (file)
@@ -108,7 +108,7 @@ static inline void* macio_get_drvdata(struct macio_dev *dev)
 
 static inline struct device_node *macio_get_of_node(struct macio_dev *mdev)
 {
-       return mdev->ofdev.node;
+       return mdev->ofdev.dev.of_node;
 }
 
 #ifdef CONFIG_PCI
@@ -123,10 +123,6 @@ static inline struct pci_dev *macio_get_pci_dev(struct macio_dev *mdev)
  */
 struct macio_driver
 {
-       char                    *name;
-       struct of_device_id     *match_table;
-       struct module           *owner;
-
        int     (*probe)(struct macio_dev* dev, const struct of_device_id *match);
        int     (*remove)(struct macio_dev* dev);