Skip to contentSkip to conversation

mfd: mcp: add missing linux/device.h header

PATCH In review Andrea Adami 2 participants 2 messages Jul 20, 2013 – Jul 22, 2013 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: mcp: add missing linux/device.h header

Fix
linux/include/linux/mfd/mcp.h:22:16: error: field 'attached_device' has incomplete type linux/include/linux/mfd/mcp.h:48:23: error: field 'drv' has incomplete type

---
 include/linux/mfd/mcp.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/mfd/mcp.h +2 -0
index a9e8bd1..f682953 100644
@@ -10,6 +10,8 @@
 #ifndef MCP_H
 #define MCP_H
 
+#include <linux/device.h>
+
 struct mcp_ops;
 
 struct mcp {
Signature · 1 line
1.8.1.5
#1 lore raw
Quoted 8 lines · Andrea Adami

Fix
linux/include/linux/mfd/mcp.h:22:16: error: field 'attached_device' has incomplete type linux/include/linux/mfd/mcp.h:48:23: error: field 'drv' has incomplete type

---
 include/linux/mfd/mcp.h | 2 ++
 1 file changed, 2 insertions(+)

I'm going to fix the commit message a little, but patch applied.

Signature · 4 lines
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog