]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/net/irda/sh_sir.c
net/irda: sh_sir: tidyup compile warning
[mirror_ubuntu-zesty-kernel.git] / drivers / net / irda / sh_sir.c
index 52a7c86af66347c388d24d29b043fe52e6a2ca5f..ed7d7d62bf68ddff78d657fa3d93d264434264a0 100644 (file)
@@ -12,6 +12,8 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/io.h>
+#include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
@@ -511,7 +513,7 @@ static void sh_sir_tx(struct sh_sir_self *self, int phase)
 
 static int sh_sir_read_data(struct sh_sir_self *self)
 {
-       u16 val;
+       u16 val = 0;
        int timeout = 1024;
 
        while (timeout--) {