]> err.no Git - linux-2.6/blobdiff - include/asm-powerpc/vio.h
[PATCH] sata_nv: kill not-working hotplug code
[linux-2.6] / include / asm-powerpc / vio.h
index e0ccf108277cd62e81e3d5e957428778a8841451..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>
@@ -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 */