lkml.org 
[lkml]   [2016]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] PM / wakeirq: forward declare 'struct device'
Date
Drivers might include this header without <linux/device.h>.

Signed-off-by: Brian Norris <briannorris@chromium.org>
---
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
\
 
 \ /
  Last update: 2016-11-10 03:04    [W:0.020 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site