diff options
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r-- | drivers/pcmcia/soc_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index 933f4657515b..eed5e9c05353 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c | |||
@@ -726,9 +726,8 @@ int soc_pcmcia_add_one(struct soc_pcmcia_socket *skt) | |||
726 | { | 726 | { |
727 | int ret; | 727 | int ret; |
728 | 728 | ||
729 | init_timer(&skt->poll_timer); | 729 | setup_timer(&skt->poll_timer, soc_common_pcmcia_poll_event, |
730 | skt->poll_timer.function = soc_common_pcmcia_poll_event; | 730 | (unsigned long)skt); |
731 | skt->poll_timer.data = (unsigned long)skt; | ||
732 | skt->poll_timer.expires = jiffies + SOC_PCMCIA_POLL_PERIOD; | 731 | skt->poll_timer.expires = jiffies + SOC_PCMCIA_POLL_PERIOD; |
733 | 732 | ||
734 | ret = request_resource(&iomem_resource, &skt->res_skt); | 733 | ret = request_resource(&iomem_resource, &skt->res_skt); |