sa1111_neponset.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | sa1111_neponset.c (3f8df892b2312011f2ba73aedc0a192d70b8844e) |
---|---|
1/* 2 * linux/drivers/pcmcia/sa1100_neponset.c 3 * 4 * Neponset PCMCIA specific routines 5 */ 6#include <linux/module.h> 7#include <linux/kernel.h> 8#include <linux/device.h> --- 96 unchanged lines hidden (view full) --- 105 .owner = THIS_MODULE, 106 .configure_socket = neponset_pcmcia_configure_socket, 107 .first = 0, 108 .nr = 2, 109}; 110 111int pcmcia_neponset_init(struct sa1111_dev *sadev) 112{ | 1/* 2 * linux/drivers/pcmcia/sa1100_neponset.c 3 * 4 * Neponset PCMCIA specific routines 5 */ 6#include <linux/module.h> 7#include <linux/kernel.h> 8#include <linux/device.h> --- 96 unchanged lines hidden (view full) --- 105 .owner = THIS_MODULE, 106 .configure_socket = neponset_pcmcia_configure_socket, 107 .first = 0, 108 .nr = 2, 109}; 110 111int pcmcia_neponset_init(struct sa1111_dev *sadev) 112{ |
113 int ret = -ENODEV; 114 115 if (machine_is_assabet()) { 116 /* 117 * Set GPIO_A<3:0> to be outputs for the MAX1600, 118 * and switch to standby mode. 119 */ 120 sa1111_set_io_dir(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0, 0); 121 sa1111_set_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); 122 sa1111_set_sleep_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); 123 sa11xx_drv_pcmcia_ops(&neponset_pcmcia_ops); 124 ret = sa1111_pcmcia_add(sadev, &neponset_pcmcia_ops, 125 sa11xx_drv_pcmcia_add_one); 126 } 127 128 return ret; | 113 /* 114 * Set GPIO_A<3:0> to be outputs for the MAX1600, 115 * and switch to standby mode. 116 */ 117 sa1111_set_io_dir(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0, 0); 118 sa1111_set_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); 119 sa1111_set_sleep_io(sadev, GPIO_A0|GPIO_A1|GPIO_A2|GPIO_A3, 0); 120 sa11xx_drv_pcmcia_ops(&neponset_pcmcia_ops); 121 return sa1111_pcmcia_add(sadev, &neponset_pcmcia_ops, 122 sa11xx_drv_pcmcia_add_one); |
129} | 123} |