summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2012-07-26 01:19:54 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-05 09:18:45 +0400
commit48817c58066fe61d3dde100e2c0dd7054418ee92 (patch)
tree75aef70611b4ac74b3c4178580f459392a340508 /drivers/macintosh
parentb4b8d1e48e05313b163a36946be1a82e5bc5f9ad (diff)
downloadlinux-48817c58066fe61d3dde100e2c0dd7054418ee92.tar.xz
drivers/macintosh/smu.c: Replace abs_to_virt() with __va()
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>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/smu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c
index 54ac7ffacb40..7d5a6b40b31c 100644
--- a/drivers/macintosh/smu.c
+++ b/drivers/macintosh/smu.c
@@ -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) {