drivers/macintosh/smu.c: Replace abs_to_virt() with __va()
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 25 Jul 2012 21:19:54 +0000 (21:19 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Sep 2012 05:18:45 +0000 (15:18 +1000)
abs_to_virt() is just a wrapper around __va(), call __va() directly.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/smu.c

index 54ac7ffacb40c9dc6352af3045c836f0162e7b73..7d5a6b40b31cf973a99e7f7232ab52bcd0bddf90 100644 (file)
@@ -45,7 +45,6 @@
 #include <asm/pmac_feature.h>
 #include <asm/smu.h>
 #include <asm/sections.h>
-#include <asm/abs_addr.h>
 #include <asm/uaccess.h>
 
 #define VERSION "0.7"
@@ -502,7 +501,7 @@ int __init smu_init (void)
         * 32 bits value safely
         */
        smu->cmd_buf_abs = (u32)smu_cmdbuf_abs;
-       smu->cmd_buf = (struct smu_cmd_buf *)abs_to_virt(smu_cmdbuf_abs);
+       smu->cmd_buf = __va(smu_cmdbuf_abs);
 
        smu->db_node = of_find_node_by_name(NULL, "smu-doorbell");
        if (smu->db_node == NULL) {