Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=da1bb3a0e1f7f9cabe70fb2c41b47fa57c42fdfd
Commit:     da1bb3a0e1f7f9cabe70fb2c41b47fa57c42fdfd
Parent:     15f8c604a79c4840ed76eecf3af5d88b7c1dee9e
Author:     Anton Vorontsov <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 17:47:40 2007 +0400
Committer:  Kumar Gala <[EMAIL PROTECTED]>
CommitDate: Thu Oct 4 15:47:23 2007 -0500

    [POWERPC] fsl_soc: fix uninitialized i2c_board_info structure
    
    i2c_board_info used semi-initialized, causing garbage in the
    info->flags, and that, in turn, causes various symptoms of i2c
    malfunctioning, like PEC mismatches.
    
    Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]>
    Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
 arch/powerpc/sysdev/fsl_soc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index 4a16456..91987e0 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -363,7 +363,7 @@ static void __init of_register_i2c_devices(struct 
device_node *adap_node,
        struct device_node *node = NULL;
 
        while ((node = of_get_next_child(adap_node, node))) {
-               struct i2c_board_info info;
+               struct i2c_board_info info = {};
                const u32 *addr;
                int len;
 
@@ -380,7 +380,6 @@ static void __init of_register_i2c_devices(struct 
device_node *adap_node,
                if (of_find_i2c_driver(node, &info) < 0)
                        continue;
 
-               info.platform_data = NULL;
                info.addr = *addr;
 
                i2c_register_board_info(bus_num, &info, 1);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to