16 #include <linux/module.h>
18 #include <linux/kernel.h>
19 #include <linux/errno.h>
37 return arcom_pcmcia_dev->
dev.platform_data;
67 dev_err(&arcom_pcmcia_dev->
dev,
"Failed to setup PCMCIA GPIOs\n");
105 dev_err(&arcom_pcmcia_dev->
dev,
"Unsupported Vcc:%d\n", state->
Vcc);
114 .hw_init = viper_pcmcia_hw_init,
115 .hw_shutdown = viper_pcmcia_hw_shutdown,
116 .socket_state = viper_pcmcia_socket_state,
117 .configure_socket = viper_pcmcia_configure_socket,
128 if (arcom_pcmcia_dev)
131 if (!pdev->
dev.platform_data)
135 if (!viper_pcmcia_device)
138 arcom_pcmcia_dev = pdev;
140 viper_pcmcia_device->
dev.parent = &pdev->
dev;
144 sizeof(viper_pcmcia_ops));
151 arcom_pcmcia_dev =
NULL;
160 arcom_pcmcia_dev =
NULL;
165 { .name =
"viper-pcmcia", },
166 { .name =
"zeus-pcmcia", },
171 .probe = viper_pcmcia_probe,
172 .remove = viper_pcmcia_remove,
174 .name =
"arcom-pcmcia",
177 .id_table = viper_pcmcia_id_table,