[PATCH] PM / wakeirq: forward declare 'struct device'

From: Brian Norris
Date: Wed Nov 09 2016 - 21:03:43 EST


Drivers might include this header without <linux/device.h>.

Signed-off-by: Brian Norris <briannorris@xxxxxxxxxxxx>
---
include/linux/pm_wakeirq.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/pm_wakeirq.h b/include/linux/pm_wakeirq.h
index cd5b62db9084..49c2220fb245 100644
--- a/include/linux/pm_wakeirq.h
+++ b/include/linux/pm_wakeirq.h
@@ -14,6 +14,8 @@
#ifndef _LINUX_PM_WAKEIRQ_H
#define _LINUX_PM_WAKEIRQ_H

+struct device;
+
#ifdef CONFIG_PM

extern int dev_pm_set_wake_irq(struct device *dev, int irq);
--
2.8.0.rc3.226.g39d4020