Skip to content

Commit

Permalink
memory: omap-gpmc: Get the header of the enum
Browse files Browse the repository at this point in the history
Commit 21abf10
("gpio: Pass a flag to gpiochip_request_own_desc()")
started to pass an enum gpiod_flags but this file is
not including the header file that defines that enum
and the compiler spits:

drivers/memory/omap-gpmc.c: In function
			    'gpmc_probe_generic_child':
drivers/memory/omap-gpmc.c:2174:9: error: type of formal
				   parameter 4 is incomplete
         0);
         ^

Cc: Ladislav Michl <[email protected]>
Cc: Janusz Krzysztofik <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Fixes: 21abf10 ("gpio: Pass a flag to gpiochip_request_own_desc()")
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
linusw committed Dec 17, 2018
1 parent d6543c0 commit a0752e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/memory/omap-gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/gpio/driver.h>
#include <linux/gpio/consumer.h> /* GPIO descriptor enum */
#include <linux/interrupt.h>
#include <linux/irqdomain.h>
#include <linux/platform_device.h>
Expand Down

0 comments on commit a0752e9

Please sign in to comment.