瀏覽代碼

usb: gadget: udc: pxa25x_udc: use setup_timer() helper.

   Use setup_timer function instead of initializing timer with the
   function and data fields.

Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Allen Pais 7 年之前
父節點
當前提交
8c0e1832e0
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/usb/gadget/udc/pxa25x_udc.c

+ 1 - 3
drivers/usb/gadget/udc/pxa25x_udc.c

@@ -2417,9 +2417,7 @@ static int pxa25x_udc_probe(struct platform_device *pdev)
 		gpio_direction_output(dev->mach->gpio_pullup, 0);
 	}
 
-	init_timer(&dev->timer);
-	dev->timer.function = udc_watchdog;
-	dev->timer.data = (unsigned long) dev;
+	setup_timer(&dev->timer, udc_watchdog, (unsigned long)dev);
 
 	the_controller = dev;
 	platform_set_drvdata(pdev, dev);