X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Frapidio%2Frio-driver.c;h=956d3e79f6aaab9c701be85526dbade07cd69a3b;hb=a5a1561f88fe8bfd7fdceed1d942ad494500b8a9;hp=3ce9f3defc1287f688f6484f2f265b7cdb620125;hpb=2f633928cbba8a5858bb39b11e7219a41b0fbef5;p=linux-2.6-omap-h63xx.git diff --git a/drivers/rapidio/rio-driver.c b/drivers/rapidio/rio-driver.c index 3ce9f3defc1..956d3e79f6a 100644 --- a/drivers/rapidio/rio-driver.c +++ b/drivers/rapidio/rio-driver.c @@ -101,8 +101,8 @@ static int rio_device_probe(struct device *dev) if (error >= 0) { rdev->driver = rdrv; error = 0; + } else rio_dev_put(rdev); - } } return error; }