]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/vio.h
[PATCH] powerpc: Use check_legacy_ioport() on ppc32 too.
[linux-2.6] / include / asm-powerpc / vio.h
index 104c58501d0ce0be0d8acfa03d512266359c7e52..0544ece51761f9236ff3b24cfaa46c0e653d23e9 100644 (file)
@@ -13,6 +13,7 @@
 
 #ifndef _ASM_POWERPC_VIO_H
 #define _ASM_POWERPC_VIO_H
+#ifdef __KERNEL__
 
 #include <linux/config.h>
 #include <linux/init.h>
@@ -58,6 +59,7 @@ struct vio_driver {
        const struct vio_device_id *id_table;
        int (*probe)(struct vio_dev *dev, const struct vio_device_id *id);
        int (*remove)(struct vio_dev *dev);
+       void (*shutdown)(struct vio_dev *dev);
        unsigned long driver_data;
        struct device_driver driver;
 };
@@ -102,4 +104,5 @@ static inline struct vio_dev *to_vio_dev(struct device *dev)
        return container_of(dev, struct vio_dev, dev);
 }
 
+#endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_VIO_H */