Messages in this thread |  | | Date | Mon, 1 Jun 2009 19:24:32 +1000 | | From | Stephen Rothwell <> | | Subject | Re: [RFC] [PATCH] Device Tree on ARM platform |
| |
On Sun, 31 May 2009 11:08:43 +0100 Russell King - ARM Linux <linux@arm.linux.org.uk> 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@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [unhandled content-type:application/pgp-signature] |  |