Re: [PATCH] driver model: fix platform_match [Was: Re: [PATCH] pcmcia: get initialization ordering right [Was: [PATCH 2.5] : i82365 & platform_bus_type]]

Jean Tourrilhes (jt@bougret.hpl.hp.com)
Fri, 14 Mar 2003 18:03:09 -0800


On Wed, Mar 05, 2003 at 10:16:46AM -0600, Patrick Mochel wrote:
>
> > Unfortunately, this won't work: digits are perfectly valid entries of
> > strings. However, we have the name without the appending instance still
> > saved in platform_device pdev->name... so what about this?
>
> D'oh. You're completely right.
>
> Thanks,
>
>
> -pat

Hi,

I tried 2.5.64-bk9, and it doesn't work !

You simply forgot to apply the patch I sent you at the
very beggining of this discussion :
----------------------------------------------------
diff -u -p linux/drivers/base/platform.c.original linux/drivers/base/platform.c
--- linux/drivers/base/platform.c.original Fri Mar 14 17:47:16 2003
+++ linux/drivers/base/platform.c Fri Mar 14 17:47:40 2003
@@ -75,5 +75,6 @@ int __init platform_bus_init(void)
return bus_register(&platform_bus_type);
}

+EXPORT_SYMBOL(platform_bus_type);
EXPORT_SYMBOL(platform_device_register);
EXPORT_SYMBOL(platform_device_unregister);
----------------------------------------------------

On the other hand, with the above patch, now everything is
working properly and my Pcmcia card work wonderfully.

Thanks a lot for the great work, and have fun...

Jean

-
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/