07 Jan, 2009

1 commit


30 Oct, 2008

1 commit


20 Oct, 2008

1 commit

  • Change cris to use the new bcd2bin/bin2bcd functions instead of the
    obsolete BCD_TO_BIN/BIN_TO_BCD macros.

    Signed-off-by: Adrian Bunk
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

29 Jul, 2008

1 commit


21 Jul, 2008

2 commits


30 Jun, 2008

1 commit

  • The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @def@
    declarer DEFINE_MUTEX;
    identifier m;
    @@

    DEFINE_MUTEX(m);

    @@
    identifier def.m;
    @@

    (
    - spin_lock(&m)
    + mutex_lock(&m)
    |
    - spin_unlock(&m)
    + mutex_unlock(&m)
    )
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Jesper Nilsson

    Julia Lawall
     

21 Jun, 2008

2 commits


19 May, 2008

1 commit


09 Feb, 2008

1 commit


08 Feb, 2008

19 commits


06 Feb, 2008

2 commits

  • An extra error handling label is needed for the case where the ioremap has
    succeeded.

    The problem was detected using the following semantic match
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    type T,T1,T2;
    identifier E;
    statement S;
    expression x1,x2;
    constant C;
    int ret;
    @@

    T E;
    ...
    * E = ioremap(...);
    if (E == NULL) S
    ... when != iounmap(E)
    when != if (E != NULL) { ... iounmap(E); ...}
    when != x1 = (T1)E
    if (...) {
    ... when != iounmap(E)
    when != if (E != NULL) { ... iounmap(E); ...}
    when != x2 = (T2)E
    (
    * return;
    |
    * return C;
    |
    * return ret;
    )
    }
    //

    Signed-off-by: Julia Lawall
    Cc: Mikael Starvik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • Improve including of architecture dependent Kconfig files.

    - Always include the architecture dependent Kconfig files.
    - Wrap architecture dependent Kconfig files inside an appropriate
    "if ETRAX_ARCH_Vxx" block.

    This makes it possible to run the configuration even without the arch links,
    which are created later in the build process.

    Signed-off-by: Jesper Nilsson
    Acked-by: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Nilsson
     

25 Jan, 2008

1 commit

  • This code is really really really broken. So much so that it's almost
    impossible to fix with a simple patch, so just comment out the offending
    registration with the kobject core, and mark the driver as broken.

    The problem is that the code is trying to register a "raw" struct
    device, which is not allowed. struct device is only for use within the
    driver model. This is being done to try to use the firmware layer which
    wants a struct device. To properly fix this, use something easy, like a
    platform device, which is a struct device and can be used for this kind
    of thing.

    Cc: Mikael Starvik
    Cc: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

28 Nov, 2007

1 commit

  • * Move ETRAX_IDE and friends from arch/cris/arch-{v10,v32}/drivers/Kconfig
    to drivers/ide/Kconfig.

    * Don't force selecting ide-disk and ide-cd device drivers
    (please handle this through defconfig if necessary).

    * Make ETRAX_IDE depend on BROKEN for the time being
    (it doesn't even compile currently).

    Cc: Mikael Starvik
    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

15 Nov, 2007

2 commits


20 Oct, 2007

2 commits


21 Aug, 2007

1 commit


20 Jul, 2007

1 commit

  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau