diff mbox series

mt76: Add missing include of linux/module.h

Message ID 20181202120634.4323-1-hauke@hauke-m.de (mailing list archive)
State Accepted
Delegated to: Kalle Valo
Headers show
Series mt76: Add missing include of linux/module.h | expand

Commit Message

Hauke Mehrtens Dec. 2, 2018, 12:06 p.m. UTC
MODULE_FIRMWARE() is used in usb_mcu.c and provided by linux/module.h,
but this header file is not directly included. This causes problems in
backports with some kernel versions.

Add the missing include.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Felix Fietkau Dec. 28, 2018, 12:16 p.m. UTC | #1
On 2018-12-02 13:06, Hauke Mehrtens wrote:
> MODULE_FIRMWARE() is used in usb_mcu.c and provided by linux/module.h,
> but this header file is not directly included. This causes problems in
> backports with some kernel versions.
> 
> Add the missing include.
> 
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Applied, thanks.

- Felix
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
index a9f14d5149d1..b2b3fd0db4bb 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
@@ -15,6 +15,7 @@ 
  */
 #include <linux/kernel.h>
 #include <linux/firmware.h>
+#include <linux/module.h>
 
 #include "mt76x0.h"
 #include "mcu.h"