Source
18
18
* along with this program; if not, write to the Free Software
19
19
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
20
*
21
21
*/
22
22
#include <linux/module.h>
23
23
#include <linux/kernel.h>
24
24
#include <linux/init.h>
25
25
#include <linux/spinlock.h>
26
26
#include <linux/platform_device.h>
27
27
#include <linux/pci.h>
28
-
#include <linux/gpio.h>
28
+
#include <linux/gpio/driver.h>
29
29
#include <linux/mfd/rdc321x.h>
30
30
#include <linux/slab.h>
31
31
​
32
32
struct rdc321x_gpio {
33
33
spinlock_t lock;
34
34
struct pci_dev *sb_pdev;
35
35
u32 data_reg[2];
36
36
int reg1_ctrl_base;
37
37
int reg1_data_base;
38
38
int reg2_ctrl_base;