X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fpnp%2Fdriver.c;h=a262762c5b8836e0dc5091317e43359b67443fc9;hb=4ccd3329a2e51473a86547a55f9e5f98f8f65b33;hp=9be01b0433b93cd5eb4c32dff9d7924ac5f9c926;hpb=1e0aa9ad721349781b728ec4226876247e3fd431;p=linux-2.6-omap-h63xx.git diff --git a/drivers/pnp/driver.c b/drivers/pnp/driver.c index 9be01b0433b..a262762c5b8 100644 --- a/drivers/pnp/driver.c +++ b/drivers/pnp/driver.c @@ -86,9 +86,6 @@ static int pnp_device_probe(struct device *dev) pnp_dev = to_pnp_dev(dev); pnp_drv = to_pnp_driver(dev->driver); - pnp_dbg("match found with the PnP device '%s' and the driver '%s'", - dev->bus_id, pnp_drv->name); - error = pnp_device_attach(pnp_dev); if (error < 0) return error; @@ -116,6 +113,8 @@ static int pnp_device_probe(struct device *dev) error = 0; } else goto fail; + + dev_dbg(dev, "driver attached\n"); return error; fail: @@ -232,10 +231,6 @@ int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev) { struct pnp_id *ptr; - if (!id) - return -EINVAL; - if (!dev) - return -EINVAL; id->next = NULL; ptr = dev->id; while (ptr && ptr->next)