Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Ellerman and committed by
Benjamin Herrenschmidt
48817c58 b4b8d1e4

+1 -2
+1 -2
drivers/macintosh/smu.c
··· 45 45 #include <asm/pmac_feature.h> 46 46 #include <asm/smu.h> 47 47 #include <asm/sections.h> 48 - #include <asm/abs_addr.h> 49 48 #include <asm/uaccess.h> 50 49 51 50 #define VERSION "0.7" ··· 501 502 * 32 bits value safely 502 503 */ 503 504 smu->cmd_buf_abs = (u32)smu_cmdbuf_abs; 504 - smu->cmd_buf = (struct smu_cmd_buf *)abs_to_virt(smu_cmdbuf_abs); 505 + smu->cmd_buf = __va(smu_cmdbuf_abs); 505 506 506 507 smu->db_node = of_find_node_by_name(NULL, "smu-doorbell"); 507 508 if (smu->db_node == NULL) {