lkml.org 
[lkml]   [2006]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 10/13] cell: correctly detect systemsim host
    From: Christian Krafft <krafft@de.ibm.com>
    Systemsim uses a different compatible property in the device tree.

    Signed-off-by: Christian Krafft <krafft@de.ibm.com>
    Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
    ---
    Index: linus-2.6/arch/powerpc/platforms/cell/setup.c
    ===================================================================
    --- linus-2.6.orig/arch/powerpc/platforms/cell/setup.c 2006-04-29
    22:53:51.000000000 +0200
    +++ linus-2.6/arch/powerpc/platforms/cell/setup.c 2006-04-29
    22:54:32.000000000 +0200
    @@ -201,10 +201,13 @@
    * more appropriate detection logic
    */
    unsigned long root = of_get_flat_dt_root();
    - if (!of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
    - return 0;
    + if (of_flat_dt_is_compatible(root, "IBM,CPBW-1.0"))
    + return 1;

    - return 1;
    + if (of_flat_dt_is_compatible(root, "IBM,CPBW-SystemSim"))
    + return 1;
    +
    + return 0;
    }

    /*
    --

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-04-30 01:49    [from the cache]
    ©2003-2011 Jasper Spaans