16 #include <linux/module.h>
18 #include <linux/kernel.h>
31 #define SG2_S0_POWER_CTL 108
32 #define SG2_S0_GPIO_RESET 82
33 #define SG2_S0_GPIO_DETECT 53
34 #define SG2_S0_GPIO_READY 81
36 static struct gpio sg2_pcmcia_gpios[] = {
75 pr_err(
"%s(): bad Vcc %u\n",
76 __func__, state->
Vcc);
88 .hw_init = sg2_pcmcia_hw_init,
89 .socket_state = sg2_pcmcia_socket_state,
90 .configure_socket = sg2_pcmcia_configure_socket,
96 static int __init sg2_pcmcia_init(
void)
100 if (!machine_is_stargate2())
104 if (!sg2_pcmcia_device)
109 goto error_put_platform_device;
113 sizeof(sg2_pcmcia_ops));
115 goto error_free_gpios;
119 goto error_free_gpios;
124 error_put_platform_device:
130 static void __exit sg2_pcmcia_exit(
void)