]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-s390/chpid.h
istallion: Use helpers
[linux-2.6-omap-h63xx.git] / include / asm-s390 / chpid.h
index 606844d0a5c34c84af18863a204c21d4e157e4d3..dfe3c7f3439a71f1cedb51ea0ca5ae71575ca329 100644 (file)
@@ -20,6 +20,9 @@ struct chp_id {
        u8 id;
 } __attribute__((packed));
 
+#ifdef __KERNEL__
+#include <asm/cio.h>
+
 static inline void chp_id_init(struct chp_id *chpid)
 {
        memset(chpid, 0, sizeof(struct chp_id));
@@ -40,9 +43,6 @@ static inline void chp_id_next(struct chp_id *chpid)
        }
 }
 
-#ifdef __KERNEL__
-#include <asm/cio.h>
-
 static inline int chp_id_is_valid(struct chp_id *chpid)
 {
        return (chpid->cssid <= __MAX_CSSID);