[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111117200411.GA8691@kroah.com>
Date: Thu, 17 Nov 2011 12:04:11 -0800
From: Greg KH <greg@...ah.com>
To: Lars-Peter Clausen <lars@...afoo.de>
Cc: Greg Kroah-Hartman <gregkh@...e.de>,
Jean Delvare <khali@...ux-fr.org>,
Grant Likely <grant.likely@...retlab.ca>,
Jonathan Cameron <jic23@...nel.org>,
Michael Hennerich <Michael.Hennerich@...log.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-i2c@...r.kernel.org, spi-devel-general@...ts.sourceforge.net
Subject: Re: [PATCH 1/5] drivercore: Generalize module_platform_driver
On Wed, Nov 16, 2011 at 10:13:35AM +0100, Lars-Peter Clausen wrote:
> This patch generalizes the module_platform_driver macro and introduces a new
> module_driver macro. The module_driver macro takes a driver name, a register
> and a unregister function for this driver type. Using these it construct the
> module init and exit sections which register and unregister the driver. Since
> such init/exit sections are commonly found in drivers this macro can be used
> to eliminate a lot of boilerplate code.
>
> The macro is not intended to be used by driver modules directly, instead it
> should be used to generate bus specific macros for registering drivers like
> the module_platform_driver macro.
>
> Signed-off-by: Lars-Peter Clausen <lars@...afoo.de>
> Acked-by: Grant Likely <grant.likely@...retlab.ca>
> Acked-by: Jonathan Cameron <jic23@...nel.org>
> Acked-by: Wolfram Sang <w.sang@...gutronix.de>
> ---
> include/linux/init.h | 21 +++++++++++++++++++++
I've moved this from init.h (which is trying to get away from
module-specific stuff) to device.h, which is where this really should
be.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists