gpio-mb86s7x.c (91de76e661a266731fc2889a398ad1694df9d523) gpio-mb86s7x.c (e1289dba18bf905870a42b994c003586688d9353)
1/*
2 * linux/drivers/gpio/gpio-mb86s7x.c
3 *
4 * Copyright (C) 2015 Fujitsu Semiconductor Limited
5 * Copyright (C) 2015 Linaro Ltd.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <linux/io.h>
18#include <linux/init.h>
19#include <linux/clk.h>
1/*
2 * linux/drivers/gpio/gpio-mb86s7x.c
3 *
4 * Copyright (C) 2015 Fujitsu Semiconductor Limited
5 * Copyright (C) 2015 Linaro Ltd.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <linux/io.h>
18#include <linux/init.h>
19#include <linux/clk.h>
20#include <linux/module.h>
20#include <linux/err.h>
21#include <linux/errno.h>
22#include <linux/ioport.h>
23#include <linux/of_device.h>
24#include <linux/gpio/driver.h>
25#include <linux/platform_device.h>
26#include <linux/spinlock.h>
27#include <linux/slab.h>

--- 176 unchanged lines hidden (view full) ---

204
205 return 0;
206}
207
208static const struct of_device_id mb86s70_gpio_dt_ids[] = {
209 { .compatible = "fujitsu,mb86s70-gpio" },
210 { /* sentinel */ }
211};
21#include <linux/err.h>
22#include <linux/errno.h>
23#include <linux/ioport.h>
24#include <linux/of_device.h>
25#include <linux/gpio/driver.h>
26#include <linux/platform_device.h>
27#include <linux/spinlock.h>
28#include <linux/slab.h>

--- 176 unchanged lines hidden (view full) ---

205
206 return 0;
207}
208
209static const struct of_device_id mb86s70_gpio_dt_ids[] = {
210 { .compatible = "fujitsu,mb86s70-gpio" },
211 { /* sentinel */ }
212};
213MODULE_DEVICE_TABLE(of, mb86s70_gpio_dt_ids);
212
213static struct platform_driver mb86s70_gpio_driver = {
214 .driver = {
215 .name = "mb86s70-gpio",
216 .of_match_table = mb86s70_gpio_dt_ids,
217 },
218 .probe = mb86s70_gpio_probe,
219 .remove = mb86s70_gpio_remove,
220};
214
215static struct platform_driver mb86s70_gpio_driver = {
216 .driver = {
217 .name = "mb86s70-gpio",
218 .of_match_table = mb86s70_gpio_dt_ids,
219 },
220 .probe = mb86s70_gpio_probe,
221 .remove = mb86s70_gpio_remove,
222};
223module_platform_driver(mb86s70_gpio_driver);
221
224
222builtin_platform_driver(mb86s70_gpio_driver);
225MODULE_DESCRIPTION("MB86S7x GPIO Driver");
226MODULE_ALIAS("platform:mb86s70-gpio");
227MODULE_LICENSE("GPL");