diff options
author | Janusz Krzysztofik <jmkrzyszt@gmail.com> | 2018-06-22 00:41:28 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-07-03 08:05:14 +0200 |
commit | 5f73861fae087df19f7337620da65c99e4260c72 (patch) | |
tree | 87107d4faf323d42a03ef100e3c8471b027f962d /arch/arm/mach-omap1/board-ams-delta.c | |
parent | Input: ams_delta_serio: use IRQ resource (diff) | |
download | linux-5f73861fae087df19f7337620da65c99e4260c72.tar.xz linux-5f73861fae087df19f7337620da65c99e4260c72.zip |
Input: ams_delta_serio: Get FIQ buffer from platform_data
Instead of exporting the FIQ buffer symbol to be used in
ams-delta-serio driver, pass it to the driver as platform_data.
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-ams-delta.c')
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index f453b08ed7ef..22f9be297c2a 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -537,6 +537,14 @@ static struct resource ams_delta_serio_resources[] = { static struct platform_device ams_delta_serio_device = { .name = "ams-delta-serio", .id = PLATFORM_DEVID_NONE, + .dev = { + /* + * Initialize .platform_data explicitly with NULL to + * indicate it is going to be used. It will be replaced + * with FIQ buffer address as soon as FIQ is initialized. + */ + .platform_data = NULL, + }, .num_resources = ARRAY_SIZE(ams_delta_serio_resources), .resource = ams_delta_serio_resources, }; |