Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232221
b: refs/heads/master
c: 2e4c556
h: refs/heads/master
i:
  232219: 5844f25
v: v3
  • Loading branch information
Kyle McMartin authored and Mauro Carvalho Chehab committed Jan 19, 2011
1 parent a32b8e5 commit 66e65df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d2edfc23e9852591cb031a26093cdcd07a34a90
refs/heads/master: 2e4c55626a0c30b5b2bc9469c025a563a81c3785
7 changes: 6 additions & 1 deletion trunk/drivers/media/rc/ene_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,10 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)
/* validate resources */
error = -ENODEV;

/* init these to -1, as 0 is valid for both */
dev->hw_io = -1;
dev->irq = -1;

if (!pnp_port_valid(pnp_dev, 0) ||
pnp_port_len(pnp_dev, 0) < ENE_IO_SIZE)
goto error;
Expand Down Expand Up @@ -1072,6 +1076,8 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)
rdev->input_name = "ENE eHome Infrared Remote Transceiver";
}

dev->rdev = rdev;

ene_rx_setup_hw_buffer(dev);
ene_setup_default_settings(dev);
ene_setup_hw_settings(dev);
Expand All @@ -1083,7 +1089,6 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)
if (error < 0)
goto error;

dev->rdev = rdev;
ene_notice("driver has been succesfully loaded");
return 0;
error:
Expand Down

0 comments on commit 66e65df

Please sign in to comment.