mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 13:57:37 +07:00
iio: adc: rcar-gyroadc: Remove devm_iio_device_alloc() error printing
devm_iio_device_alloc() can only fail due to a memory or IDA allocation failure. Hence there is no need to print a message, as the memory allocation or IIO core code already takes care of that. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
cf54f4dd07
commit
5c25531d4b
@ -485,10 +485,8 @@ static int rcar_gyroadc_probe(struct platform_device *pdev)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
indio_dev = devm_iio_device_alloc(dev, sizeof(*priv));
|
indio_dev = devm_iio_device_alloc(dev, sizeof(*priv));
|
||||||
if (!indio_dev) {
|
if (!indio_dev)
|
||||||
dev_err(dev, "Failed to allocate IIO device.\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
priv = iio_priv(indio_dev);
|
priv = iio_priv(indio_dev);
|
||||||
priv->dev = dev;
|
priv->dev = dev;
|
||||||
|
Loading…
Reference in New Issue
Block a user