[PATCH 1/1] mtd: mxc_nand: Include linux/of.h header

Brian Norris computersforpeace at gmail.com
Wed Oct 30 14:58:36 PDT 2013


On Fri, Oct 18, 2013 at 04:16:35PM +0530, Sachin Kamat wrote:
> 'of_match_ptr' is defined in linux/of.h. Include it explicitly to
> avoid build breakage in the future.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
> ---
>  drivers/mtd/nand/mxc_nand.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
> index ce8242b..1037755 100644
> --- a/drivers/mtd/nand/mxc_nand.c
> +++ b/drivers/mtd/nand/mxc_nand.c
> @@ -32,6 +32,7 @@
>  #include <linux/io.h>
>  #include <linux/irq.h>
>  #include <linux/completion.h>
> +#include <linux/of.h>
>  #include <linux/of_device.h>
>  #include <linux/of_mtd.h>

I'm not really sure this is all that necessary (are of_device.h or
of_mtd.h ever not going to include the appropriate of.h header?), but
since we have the patch (and I see that you've been spamming around the
other subsystems with similar patches)...

Applied to l2-mtd.git.

Brian



More information about the linux-mtd mailing list