aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/omap_cf.c
diff options
context:
space:
mode:
authorVaishali Thakkar <vthakkar1994@gmail.com>2015-02-11 05:55:38 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-16 16:31:43 -0400
commitdae6cdabe45baecfcfd02fbf11d97bb645450fc6 (patch)
tree840c6279f9ec735435a48e41dfacd7375b324d0c /drivers/pcmcia/omap_cf.c
parent0ab163ad1ea0bb0ccd4ada2a54834041611d76f1 (diff)
pcmcia: Use setup_timer
This patch introduces the use of function setup_timer. This is done using Coccinelle and semantic patch used is as follows: @@ expression x,y,z; @@ - init_timer (&x); + setup_timer (&x, y, z); - x.function = y; - x.data = z; Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/omap_cf.c')
-rw-r--r--drivers/pcmcia/omap_cf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c
index 8170102d1e93..4e2f501e5548 100644
--- a/drivers/pcmcia/omap_cf.c
+++ b/drivers/pcmcia/omap_cf.c
@@ -220,9 +220,7 @@ static int __init omap_cf_probe(struct platform_device *pdev)
220 cf = kzalloc(sizeof *cf, GFP_KERNEL); 220 cf = kzalloc(sizeof *cf, GFP_KERNEL);
221 if (!cf) 221 if (!cf)
222 return -ENOMEM; 222 return -ENOMEM;
223 init_timer(&cf->timer); 223 setup_timer(&cf->timer, omap_cf_timer, (unsigned long)cf);
224 cf->timer.function = omap_cf_timer;
225 cf->timer.data = (unsigned long) cf;
226 224
227 cf->pdev = pdev; 225 cf->pdev = pdev;
228 platform_set_drvdata(pdev, cf); 226 platform_set_drvdata(pdev, cf);