Skip to content

Commit 26d81b2

Browse files
milesdotchengregkh
authored andcommitted
usb: gadget: at91_udc: fix incorrect print type
Fix a build error observed with ARCH=arm DEFCONFIG=allmodconfig build. drivers/usb/gadget/udc/at91_udc.h:174:42: error: format '%d' expects argument of type 'int', but argument 3 has type 'struct gpio_desc *' [-Werror=format=] Fixes: 4a555f2 ("usb: gadget: at91_udc: Convert to GPIO descriptors") Reviewed-by: Macpaul Lin <[email protected]> Signed-off-by: Miles Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2cc9b1c commit 26d81b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/udc/at91_udc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ static int at91udc_probe(struct platform_device *pdev)
18951895
at91_vbus_irq, 0, driver_name, udc);
18961896
if (retval) {
18971897
DBG("request vbus irq %d failed\n",
1898-
udc->board.vbus_pin);
1898+
desc_to_gpio(udc->board.vbus_pin));
18991899
goto err_unprepare_iclk;
19001900
}
19011901
}

0 commit comments

Comments
 (0)