Patchwork [-next] mtd: remove duplicated include from mtdcore.c

login
register
mail settings
Submitter Wei Yongjun
Date Oct. 30, 2013, 5:34 a.m.
Message ID <CAPgLHd8=fLjqnKEoTB2C+7R=Nz7bdV0D5ttO29em=P8nX-Tvag@mail.gmail.com>
Download mbox | patch
Permalink /patch/287134/
State Accepted
Commit ca5295f48b25ee58fd9de8830fe4016d1d45eb0a
Headers show

Comments

Wei Yongjun - Oct. 30, 2013, 5:34 a.m.
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Remove duplicated include.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/mtd/mtdcore.c | 1 -
 1 file changed, 1 deletion(-)
Ezequiel Garcia - Oct. 30, 2013, 9:56 a.m.
On Wed, Oct 30, 2013 at 01:34:22PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Remove duplicated include.
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
>  drivers/mtd/mtdcore.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
> index 7189089..92311a5 100644
> --- a/drivers/mtd/mtdcore.c
> +++ b/drivers/mtd/mtdcore.c
> @@ -37,7 +37,6 @@
>  #include <linux/backing-dev.h>
>  #include <linux/gfp.h>
>  #include <linux/slab.h>
> -#include <linux/major.h>
>  
>  #include <linux/mtd/mtd.h>
>  #include <linux/mtd/partitions.h>
> 
> 

Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

Ooops.. sorry about that. This was introduced by me in this one:

commit 40d1b2e461f28c4add582ef7ca8ed9f16f6b5add
Author: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Date:   Sun Oct 13 18:05:23 2013 -0300

mtd: Move major number definitions to major.h
Brian Norris - Oct. 30, 2013, 9:37 p.m.
On Wed, Oct 30, 2013 at 06:56:41AM -0300, Ezequiel Garcia wrote:
> On Wed, Oct 30, 2013 at 01:34:22PM +0800, Wei Yongjun wrote:
> > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> > 
> > Remove duplicated include.
> > 
> > Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> > ---
> >  drivers/mtd/mtdcore.c | 1 -
> >  1 file changed, 1 deletion(-)
> > 
> > diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
> > index 7189089..92311a5 100644
> > --- a/drivers/mtd/mtdcore.c
> > +++ b/drivers/mtd/mtdcore.c
> > @@ -37,7 +37,6 @@
> >  #include <linux/backing-dev.h>
> >  #include <linux/gfp.h>
> >  #include <linux/slab.h>
> > -#include <linux/major.h>
> >  
> >  #include <linux/mtd/mtd.h>
> >  #include <linux/mtd/partitions.h>
> > 
> > 
> 
> Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

Pushed to l2-mtd.git, thanks Wei! It probably could just be squashed
into the original patch, but I'm not sure it's actually worth the
rebase.

Brian

Patch

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 7189089..92311a5 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -37,7 +37,6 @@ 
 #include <linux/backing-dev.h>
 #include <linux/gfp.h>
 #include <linux/slab.h>
-#include <linux/major.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>