Merge tag 'for-linus-20190524' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / arch / arm / mach-imx / devices / platform-gpio_keys.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
4  */
5 #include <linux/sizes.h>
6
7 #include "../hardware.h"
8 #include "devices-common.h"
9
10 struct platform_device *__init imx_add_gpio_keys(
11                 const struct gpio_keys_platform_data *pdata)
12 {
13         return imx_add_platform_device("gpio-keys", -1, NULL,
14                  0, pdata, sizeof(*pdata));
15 }