aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-09 17:35:53 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:43 +0200
commit2d0125bd85a2812ee7bed6c37a8fdd3369d640f1 (patch)
treea9a0cdca462320eb6ac43f04ad9e47e81673978c /target/linux/ath79
parentd3207b13f84de30e71f7b5dc83d5d1d9e53e7191 (diff)
downloadupstream-2d0125bd85a2812ee7bed6c37a8fdd3369d640f1.tar.gz
upstream-2d0125bd85a2812ee7bed6c37a8fdd3369d640f1.tar.bz2
upstream-2d0125bd85a2812ee7bed6c37a8fdd3369d640f1.zip
ath79: rb91x_nand: fix compilation warning for dev_err
Fix compilation warning for dev_err in rb91x_nand driver. Fix compilation warning: drivers/mtd/nand/raw/rb91x_nand.c:289:25: note: in expansion of macro 'dev_err' 289 | dev_err(dev, "failed to get gpios: %d\n", | ^~~~~~~ drivers/mtd/nand/raw/rb91x_nand.c:289:61: note: format string is defined here 289 | dev_err(dev, "failed to get gpios: %d\n", | ~^ | | | int | %ld cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c b/target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c
index 244fd27590..c502f4a064 100644
--- a/target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c
+++ b/target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c
@@ -286,7 +286,7 @@ static int rb91x_nand_probe(struct platform_device *pdev)
gpios = gpiod_get_array(dev, NULL, GPIOD_OUT_LOW);
if (IS_ERR(gpios)) {
if (PTR_ERR(gpios) != -EPROBE_DEFER) {
- dev_err(dev, "failed to get gpios: %d\n",
+ dev_err(dev, "failed to get gpios: %ld\n",
PTR_ERR(gpios));
}
return PTR_ERR(gpios);