]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/irda/omap-ir.c
Make omap-ir build with workqueue changes
[linux-2.6-omap-h63xx.git] / drivers / net / irda / omap-ir.c
index 562c8768a0b0662e1a2e6f3e51b2df2bfa8c4739..85658dcddd8e02896914ceaaf36ffb89d8632186 100644 (file)
@@ -54,6 +54,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
 #include <linux/i2c.h>
+#include <linux/workqueue.h>
 
 #include <net/irda/irda.h>
 #include <net/irda/irmod.h>
@@ -849,7 +850,7 @@ static int omap_irda_probe(struct platform_device *pdev)
 
        /* Any better way to avoid this? No. */
        if (machine_is_omap_h3() || machine_is_omap_h4())
-               INIT_WORK(&omap_ir->pdata->gpio_expa, NULL, NULL);
+               INIT_DELAYED_WORK(&omap_ir->pdata->gpio_expa, NULL);
 
        err = register_netdev(dev);
        if (!err)