Re: Platform device matching

Greg KH
2004-05-02T06:57:38Z

On Mon, Apr 26, 2004 at 12:35:10AM +0100, Kenn Humborg wrote:
> On Mon, Apr 26, 2004 at 12:27:33AM +0100, Russell King wrote:
> > pdev->name is the platform device name, which is just the <name> part.
> > pdev->dev.bus_id is the device model name, which is <name><instance-number>,
> > and the devices are known by this name.
> >
> > Rather than going to the trouble of parsing <name> from the device model
> > name which would be inherently buggy, we reference it directly from the
> > platform_device structure.
>
> OK - I see it now.
>
> > So, this comment needs updating:
> >
> > * So, extract the <name> from the device, and compare it against
> > * the name of the driver. Return whether they match or not.
>
> Want a patch?

Applied, thanks.

greg k-h