From: Paul Mackerras Date: Tue, 1 Aug 2006 00:37:25 +0000 (+1000) Subject: Merge branch 'merge' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=57cad8084e0837e0f2c97da789ec9b3f36809be9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Merge branch 'merge' --- 57cad8084e0837e0f2c97da789ec9b3f36809be9 diff --cc drivers/macintosh/smu.c index 6f358600536e,00ef46898147..090e40fc5013 --- a/drivers/macintosh/smu.c +++ b/drivers/macintosh/smu.c @@@ -483,9 -490,10 +490,10 @@@ int __init smu_init (void printk(KERN_ERR "SMU: Can't find doorbell GPIO !\n"); goto fail; } - data = get_property(np, "reg", NULL); - data = (u32 *)get_property(smu->db_node, "reg", NULL); ++ data = get_property(smu->db_node, "reg", NULL); if (data == NULL) { - of_node_put(np); + of_node_put(smu->db_node); + smu->db_node = NULL; printk(KERN_ERR "SMU: Can't find doorbell GPIO address !\n"); goto fail; } @@@ -500,15 -508,13 +508,13 @@@ /* Now look for the smu-interrupt GPIO */ do { - np = of_find_node_by_name(NULL, "smu-interrupt"); - if (np == NULL) + smu->msg_node = of_find_node_by_name(NULL, "smu-interrupt"); + if (smu->msg_node == NULL) break; - data = get_property(np, "reg", NULL); - data = (u32 *)get_property(smu->msg_node, "reg", NULL); ++ data = get_property(smu->msg_node, "reg", NULL); if (data == NULL) { - of_node_put(np); + of_node_put(smu->msg_node); + smu->msg_node = NULL; break; } smu->msg = *data;