Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1657545
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] spi: davinci: Fix compilation warning. |
| Date | 2017-06-05 14:20 +0200 |
| Message-ID | <tOZ9g-2Na-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
If CONFIG_OF is disable, it'll through compilation warning.
drivers/spi/spi-davinci.c: In function ‘spi_davinci_get_pdata’:
drivers/spi/spi-davinci.c:880:2: warning: return makes pointer from integer without a cast [enabled by default]
return -ENODEV;
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/spi/spi-davinci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c
index 2b0805d..93a4009 100644
--- a/drivers/spi/spi-davinci.c
+++ b/drivers/spi/spi-davinci.c
@@ -877,7 +877,7 @@ static int spi_davinci_get_pdata(struct platform_device *pdev,
*spi_davinci_get_pdata(struct platform_device *pdev,
struct davinci_spi *dspi)
{
- return -ENODEV;
+ return ERR_PTR(-ENODEV);
}
#endif
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] spi: davinci: Fix compilation warning. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-05 14:20 +0200
Re: [PATCH] spi: davinci: Fix compilation warning. Geert Uytterhoeven <geert@linux-m68k.org> - 2017-06-05 15:10 +0200
Re: [PATCH] spi: davinci: Fix compilation warning. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-05 15:30 +0200
Re: [PATCH] spi: davinci: Fix compilation warning. Mark Brown <broonie@kernel.org> - 2017-06-05 15:50 +0200
csiph-web