mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
mtd: spi-nor: intel: use ERR_CAST in return statement
This fixes a sparse warning about incorrect type in return expression. Signed-off-by: Nicholas Mc Guire <[email protected]> Acked-by: Marek Vasut <[email protected]> Acked-by: Mika Westerberg <[email protected]> Acked-by: Boris Brezillon <[email protected]> Signed-off-by: Cyrille Pitchen <[email protected]>
This commit is contained in:
parent
22d6187856
commit
011de1b1db
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ struct intel_spi *intel_spi_probe(struct device *dev,
|
|||
|
||||
ispi->base = devm_ioremap_resource(dev, mem);
|
||||
if (IS_ERR(ispi->base))
|
||||
return ispi->base;
|
||||
return ERR_CAST(ispi->base);
|
||||
|
||||
ispi->dev = dev;
|
||||
ispi->info = info;
|
||||
|
|
|
|||
Loading…
Reference in a new issue