Commit 38cf5e92 authored by Kenn Humborg's avatar Kenn Humborg Committed by Greg Kroah-Hartman

[PATCH] Re: Platform device matching

On Mon, Apr 26, 2004 at 12:27:33AM +0100, Russell King wrote:
> 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?
parent 571c7bec
...@@ -57,8 +57,9 @@ void platform_device_unregister(struct platform_device * pdev) ...@@ -57,8 +57,9 @@ void platform_device_unregister(struct platform_device * pdev)
* type of device, like "pci" or "floppy", and <instance> is the * type of device, like "pci" or "floppy", and <instance> is the
* enumerated instance of the device, like '0' or '42'. * enumerated instance of the device, like '0' or '42'.
* Driver IDs are simply "<name>". * Driver IDs are simply "<name>".
* So, extract the <name> from the device, and compare it against * So, extract the <name> from the platform_device structure,
* the name of the driver. Return whether they match or not. * and compare it against the name of the driver. Return whether
* they match or not.
*/ */
static int platform_match(struct device * dev, struct device_driver * drv) static int platform_match(struct device * dev, struct device_driver * drv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment