Re: [RFC] [PATCH] Device Tree on ARM platform

From: Stephen Rothwell
Date: Mon Jun 01 2009 - 05:24:52 EST


On Sun, 31 May 2009 11:08:43 +0100 Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx> wrote:
>
> > diff --git a/arch/arm/include/asm/of_platform.h b/arch/arm/include/asm/of_platform.h
> > new file mode 100644
> > index 0000000..53b4650
> > --- /dev/null
> > +++ b/arch/arm/include/asm/of_platform.h
> > +/* Platform drivers register/unregister */
> > +static inline int of_register_platform_driver(struct of_platform_driver *drv)
> > +{
> > + return of_register_driver(drv, &of_platform_bus_type);
> > +}
> > +static inline void of_unregister_platform_driver(struct of_platform_driver *drv)
> > +{
> > + of_unregister_driver(drv);
> > +}
>
> Not sure why this isn't generic code.

They are both in include/linux/of_platform.h since commit
0763ed2355198cdef2f6a2098e9d52eb1fe4365d ("of: make
of_(un)register_platform_driver common code") - added to Linus' tree
on May 5.

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature