Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ff0c566 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman
Browse files

drivers/misc: aspeed-lpc-ctrl: fix printk format warning again



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: 132c93d4 ("drivers/misc: Aspeed LPC control fix compile error and warning")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 57c0eabb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}