diff options
Diffstat (limited to 'net/irda/irnet/irnet_irda.c')
-rw-r--r-- | net/irda/irnet/irnet_irda.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/irda/irnet/irnet_irda.c b/net/irda/irnet/irnet_irda.c index 75497e55927d..cf9a4b531a98 100644 --- a/net/irda/irnet/irnet_irda.c +++ b/net/irda/irnet/irnet_irda.c | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include "irnet_irda.h" /* Private header */ | 11 | #include "irnet_irda.h" /* Private header */ |
12 | #include <linux/seq_file.h> | 12 | #include <linux/seq_file.h> |
13 | #include <asm/unaligned.h> | ||
13 | 14 | ||
14 | /* | 15 | /* |
15 | * PPP disconnect work: we need to make sure we're in | 16 | * PPP disconnect work: we need to make sure we're in |
@@ -1673,7 +1674,7 @@ irnet_discovery_indication(discinfo_t * discovery, | |||
1673 | /* Notify the control channel */ | 1674 | /* Notify the control channel */ |
1674 | irnet_post_event(NULL, IRNET_DISCOVER, | 1675 | irnet_post_event(NULL, IRNET_DISCOVER, |
1675 | discovery->saddr, discovery->daddr, discovery->info, | 1676 | discovery->saddr, discovery->daddr, discovery->info, |
1676 | u16ho(discovery->hints)); | 1677 | get_unaligned((__u16 *)discovery->hints)); |
1677 | 1678 | ||
1678 | DEXIT(IRDA_OCB_TRACE, "\n"); | 1679 | DEXIT(IRDA_OCB_TRACE, "\n"); |
1679 | } | 1680 | } |
@@ -1704,7 +1705,7 @@ irnet_expiry_indication(discinfo_t * expiry, | |||
1704 | /* Notify the control channel */ | 1705 | /* Notify the control channel */ |
1705 | irnet_post_event(NULL, IRNET_EXPIRE, | 1706 | irnet_post_event(NULL, IRNET_EXPIRE, |
1706 | expiry->saddr, expiry->daddr, expiry->info, | 1707 | expiry->saddr, expiry->daddr, expiry->info, |
1707 | u16ho(expiry->hints)); | 1708 | get_unaligned((__u16 *)expiry->hints)); |
1708 | 1709 | ||
1709 | DEXIT(IRDA_OCB_TRACE, "\n"); | 1710 | DEXIT(IRDA_OCB_TRACE, "\n"); |
1710 | } | 1711 | } |