Skip to contentSkip to conversation

mfd: twl4030: Add missed linux/device.h header

PATCH Applied Andy Shevchenko 2 participants 2 messages Sep 23, 2022 – Sep 26, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: twl4030: Add missed linux/device.h header

With compile testing on non-OMAP platforms compiler might be not happy:

In function ‘twl4030_sih_setup’:
error: implicit declaration of function ‘dev_err’ [-Werror=implicit-function-declaration]
error: implicit declaration of function ‘dev_info’ [-Werror=implicit-function-declaration]
In function ‘twl4030_init_irq’:
error: invalid use of undefined type ‘struct device’

Add missed header.

---
 drivers/mfd/twl4030-irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/twl4030-irq.c +1 -0
index 4f576f0160a9..87496c1cb8bc 100644
@@ -14,6 +14,7 @@
  * by syed khasim <[email protected]>
  */
 
+#include <linux/device.h>
 #include <linux/export.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
Signature · 1 line
2.35.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Andy Shevchenko

With compile testing on non-OMAP platforms compiler might be not happy:

In function ‘twl4030_sih_setup’:
error: implicit declaration of function ‘dev_err’ [-Werror=implicit-function-declaration]
error: implicit declaration of function ‘dev_info’ [-Werror=implicit-function-declaration]
In function ‘twl4030_init_irq’:
error: invalid use of undefined type ‘struct device’

Quoted 6 lines

Add missed header.

---
 drivers/mfd/twl4030-irq.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 1 line
Lee Jones [李琼斯]