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 
imx_add_gpio_keys(const struct gpio_keys_platform_data * pdata)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 }
16