]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/hwmon/hdaps.c
[PATCH] v4l: 888: saa7113 renamed to saa711x
[karo-tx-linux.git] / drivers / hwmon / hdaps.c
index 7f0107613827bcacc209fbb4f806dba28cdad747..1e5dfc7805e289acf2063f95774bf387e6ab4876 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 #include <linux/delay.h>
-#include <linux/device.h>
+#include <linux/platform_device.h>
 #include <linux/input.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -296,11 +296,9 @@ static int hdaps_probe(struct device *dev)
        return 0;
 }
 
-static int hdaps_resume(struct device *dev, u32 level)
+static int hdaps_resume(struct device *dev)
 {
-       if (level == RESUME_ENABLE)
-               return hdaps_device_init();
-       return 0;
+       return hdaps_device_init();
 }
 
 static struct device_driver hdaps_driver = {