X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Frapidio%2Frio-driver.c;fp=drivers%2Frapidio%2Frio-driver.c;h=956d3e79f6aaab9c701be85526dbade07cd69a3b;hb=a7de3902edce099e4102c1272ec0ab569c1791f7;hp=3ce9f3defc1287f688f6484f2f265b7cdb620125;hpb=fb0e7e11d017beb5f0b1fa25bc51e49e65c46d67;p=pandora-kernel.git diff --git a/drivers/rapidio/rio-driver.c b/drivers/rapidio/rio-driver.c index 3ce9f3defc12..956d3e79f6aa 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; }