]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
of/platform: sparse fix
authorKim Phillips <kim.phillips@freescale.com>
Tue, 9 Oct 2012 00:42:11 +0000 (19:42 -0500)
committerRob Herring <rob.herring@calxeda.com>
Wed, 17 Oct 2012 20:53:03 +0000 (15:53 -0500)
drivers/of/platform.c:110:59: warning: incorrect type in argument 2 (different base types)
drivers/of/platform.c:110:59:    expected restricted __be32 const [usertype] *addr
drivers/of/platform.c:110:59:    got unsigned int const [usertype] *[assigned] reg

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/platform.c

index 9bdeaf30b17dd5a197f373f9baa18401338ef3d8..b80891b438168491b6434afb2086b4f2424ffc7e 100644 (file)
@@ -76,7 +76,7 @@ void of_device_make_bus_id(struct device *dev)
 {
        static atomic_t bus_no_reg_magic;
        struct device_node *node = dev->of_node;
-       const u32 *reg;
+       const __be32 *reg;
        u64 addr;
        const __be32 *addrp;
        int magic;