]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/pcmcia/omap_cf.c
pcmcia: Use setup_timer
[karo-tx-linux.git] / drivers / pcmcia / omap_cf.c
index 8170102d1e9389d166396b5699ea480f2ec2e099..4e2f501e55486dbee297865f03148e5b46d09d91 100644 (file)
@@ -220,9 +220,7 @@ static int __init omap_cf_probe(struct platform_device *pdev)
        cf = kzalloc(sizeof *cf, GFP_KERNEL);
        if (!cf)
                return -ENOMEM;
-       init_timer(&cf->timer);
-       cf->timer.function = omap_cf_timer;
-       cf->timer.data = (unsigned long) cf;
+       setup_timer(&cf->timer, omap_cf_timer, (unsigned long)cf);
 
        cf->pdev = pdev;
        platform_set_drvdata(pdev, cf);