From: Anton Blanchard Date: Mon, 2 Jul 2012 00:58:52 +0000 (-0300) Subject: [media] winbond-cir: Initialise timeout, driver_type and allowed_protos X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8299d62843d4dcc5d769ce901799b8e7806ec93f;p=openwrt%2Fstaging%2Fblogic.git [media] winbond-cir: Initialise timeout, driver_type and allowed_protos We need to set a timeout so we can go idle on no activity. Signed-off-by: Anton Blanchard Acked-by: David Härdeman Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index eca17b564cc2..54ee34872d14 100644 --- a/drivers/media/rc/winbond-cir.c +++ b/drivers/media/rc/winbond-cir.c @@ -1032,6 +1032,8 @@ wbcir_probe(struct pnp_dev *device, const struct pnp_device_id *dev_id) data->dev->tx_ir = wbcir_tx; data->dev->priv = data; data->dev->dev.parent = &device->dev; + data->dev->timeout = MS_TO_NS(100); + data->dev->allowed_protos = RC_TYPE_ALL; if (!request_region(data->wbase, WAKEUP_IOMEM_LEN, DRVNAME)) { dev_err(dev, "Region 0x%lx-0x%lx already in use!\n",