]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/misc: aspeed-lpc-ctrl: fix printk format warning again
authorArnd Bergmann <arnd@arndb.de>
Thu, 23 Mar 2017 16:08:08 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:37:20 +0000 (17:37 +0200)
The format string is still broken after the first attempt to fix it:

drivers/misc/aspeed-lpc-ctrl.c: In function 'aspeed_lpc_ctrl_probe':
drivers/misc/aspeed-lpc-ctrl.c:232:17: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=]

We can actually just print the resource structure directly here.

Fixes: 132c93d4215c ("drivers/misc: Aspeed LPC control fix compile error and warning")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/aspeed-lpc-ctrl.c

index c654651a7b6dda4611312c5805fa1606258e284e..b5439643f54b23c67dda8831e674344616f97e68 100644 (file)
@@ -229,8 +229,7 @@ static int aspeed_lpc_ctrl_probe(struct platform_device *pdev)
        if (rc)
                dev_err(dev, "Unable to register device\n");
        else
-               dev_info(dev, "Loaded at %pap (0x%08x)\n",
-                       &lpc_ctrl->mem_base, lpc_ctrl->mem_size);
+               dev_info(dev, "Loaded at %pr\n", &resm);
 
        return rc;
 }