[PATCH] sh: pci: Fix the wrong format specifier
From: liujing
Date: Wed Dec 04 2024 - 06:10:43 EST
Make a minor change to eliminate a static checker warning. The type
of port->index is unsigned int, so the correct format specifier should be
%u instead of %d.
Signed-off-by: liujing <liujing@xxxxxxxxxxxxxxxxxxxx>
diff --git a/arch/sh/drivers/pci/pcie-sh7786.c b/arch/sh/drivers/pci/pcie-sh7786.c
index a78b9a935585..9ccc602d7f86 100644
--- a/arch/sh/drivers/pci/pcie-sh7786.c
+++ b/arch/sh/drivers/pci/pcie-sh7786.c
@@ -219,7 +219,7 @@ static int __init pcie_clk_init(struct sh7786_pcie_port *port)
* on. clock lookups don't help us much at this point, since no
* dev_id is available this early. Lame.
*/
- snprintf(fclk_name, sizeof(fclk_name), "pcie%d_fck", port->index);
+ snprintf(fclk_name, sizeof(fclk_name), "pcie%u_fck", port->index);
port->fclk = clk_get(NULL, fclk_name);
if (IS_ERR(port->fclk)) {
--
2.27.0