diff options
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r-- | drivers/pcmcia/soc_common.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index 9e7ccd8a4321..ea7d9ca160b2 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c | |||
@@ -297,25 +297,6 @@ soc_common_pcmcia_get_status(struct pcmcia_socket *sock, unsigned int *status) | |||
297 | 297 | ||
298 | 298 | ||
299 | /* | 299 | /* |
300 | * Implements the get_socket() operation for the in-kernel PCMCIA | ||
301 | * service (formerly SS_GetSocket in Card Services). Not a very | ||
302 | * exciting routine. | ||
303 | * | ||
304 | * Returns: 0 | ||
305 | */ | ||
306 | static int | ||
307 | soc_common_pcmcia_get_socket(struct pcmcia_socket *sock, socket_state_t *state) | ||
308 | { | ||
309 | struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock); | ||
310 | |||
311 | debug(skt, 2, "\n"); | ||
312 | |||
313 | *state = skt->cs_state; | ||
314 | |||
315 | return 0; | ||
316 | } | ||
317 | |||
318 | /* | ||
319 | * Implements the set_socket() operation for the in-kernel PCMCIA | 300 | * Implements the set_socket() operation for the in-kernel PCMCIA |
320 | * service (formerly SS_SetSocket in Card Services). We more or | 301 | * service (formerly SS_SetSocket in Card Services). We more or |
321 | * less punt all of this work and let the kernel handle the details | 302 | * less punt all of this work and let the kernel handle the details |
@@ -528,7 +509,6 @@ static struct pccard_operations soc_common_pcmcia_operations = { | |||
528 | .init = soc_common_pcmcia_sock_init, | 509 | .init = soc_common_pcmcia_sock_init, |
529 | .suspend = soc_common_pcmcia_suspend, | 510 | .suspend = soc_common_pcmcia_suspend, |
530 | .get_status = soc_common_pcmcia_get_status, | 511 | .get_status = soc_common_pcmcia_get_status, |
531 | .get_socket = soc_common_pcmcia_get_socket, | ||
532 | .set_socket = soc_common_pcmcia_set_socket, | 512 | .set_socket = soc_common_pcmcia_set_socket, |
533 | .set_io_map = soc_common_pcmcia_set_io_map, | 513 | .set_io_map = soc_common_pcmcia_set_io_map, |
534 | .set_mem_map = soc_common_pcmcia_set_mem_map, | 514 | .set_mem_map = soc_common_pcmcia_set_mem_map, |
@@ -665,13 +645,12 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops | |||
665 | 645 | ||
666 | down(&soc_pcmcia_sockets_lock); | 646 | down(&soc_pcmcia_sockets_lock); |
667 | 647 | ||
668 | sinfo = kmalloc(SKT_DEV_INFO_SIZE(nr), GFP_KERNEL); | 648 | sinfo = kzalloc(SKT_DEV_INFO_SIZE(nr), GFP_KERNEL); |
669 | if (!sinfo) { | 649 | if (!sinfo) { |
670 | ret = -ENOMEM; | 650 | ret = -ENOMEM; |
671 | goto out; | 651 | goto out; |
672 | } | 652 | } |
673 | 653 | ||
674 | memset(sinfo, 0, SKT_DEV_INFO_SIZE(nr)); | ||
675 | sinfo->nskt = nr; | 654 | sinfo->nskt = nr; |
676 | 655 | ||
677 | /* | 656 | /* |