Skip to content

Commit ecd9d34

Browse files
Paul Gortmakergregkh
authored andcommitted
c2port: fix build error for duramar2150 due to missing header.
This file needs the basic headers for resource management, otherwise we will see this build error: CC [M] drivers/misc/c2port/c2port-duramar2150.o drivers/misc/c2port/c2port-duramar2150.c: In function ‘duramar2150_c2port_init’: drivers/misc/c2port/c2port-duramar2150.c:125:2: error: implicit declaration of function ‘request_region’ [-Werror=implicit-function-declaration] drivers/misc/c2port/c2port-duramar2150.c:139:2: error: implicit declaration of function ‘release_region’ [-Werror=implicit-function-declaration] Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent dcd6c92 commit ecd9d34

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/misc/c2port/c2port-duramar2150.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/module.h>
1616
#include <linux/delay.h>
1717
#include <linux/io.h>
18+
#include <linux/ioport.h>
1819
#include <linux/c2port.h>
1920

2021
#define DATA_PORT 0x325

0 commit comments

Comments
 (0)