[AX.25]: Fix potencial memory hole.
[powerpc.git] / include / asm-powerpc / vio.h
index f10f72f..0544ece 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>
@@ -55,10 +56,10 @@ struct vio_dev {
 
 struct vio_driver {
        struct list_head node;
-       char *name;
        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;
 };
@@ -103,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 */