Messages in this thread | | | From | Grant Likely <> | Date | Thu, 5 Aug 2010 17:00:59 -0600 | Subject | Re: [RFC PATCH] platform: Faciliatate the creation of pseduo-platform busses |
| |
On Tue, Aug 3, 2010 at 5:56 PM, Greg KH <gregkh@suse.de> wrote: > On Tue, Aug 03, 2010 at 04:35:06PM -0700, Patrick Pannuto wrote: >> @@ -539,12 +541,12 @@ int __init_or_module platform_driver_probe(struct platform_driver *drv, >> * if the probe was successful, and make sure any forced probes of >> * new devices fail. >> */ >> - spin_lock(&platform_bus_type.p->klist_drivers.k_lock); >> + spin_lock(&drv->driver.bus->p->klist_drivers.k_lock); >> drv->probe = NULL; >> if (code == 0 && list_empty(&drv->driver.p->klist_devices.k_list)) >> retval = -ENODEV; >> drv->driver.probe = platform_drv_probe_fail; >> - spin_unlock(&platform_bus_type.p->klist_drivers.k_lock); >> + spin_unlock(&drv->driver.bus->p->klist_drivers.k_lock); >> >> if (code != retval) >> platform_driver_unregister(drv); > > I'm guessing that this chunk can be applied now, right?
Yes, I agree. This chunk makes sense independently of the rest of the patch.
g. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |