We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c6cac commit a1d8f70Copy full SHA for a1d8f70
drivers/spi/spi-sg2044-nor.c
@@ -427,7 +427,6 @@ static int sg2044_spifmc_probe(struct platform_device *pdev)
427
{
428
struct spi_controller *ctrl;
429
struct sg2044_spifmc *spifmc;
430
- void __iomem *base;
431
int ret;
432
433
ctrl = devm_spi_alloc_host(&pdev->dev, sizeof(*spifmc));
@@ -447,8 +446,8 @@ static int sg2044_spifmc_probe(struct platform_device *pdev)
447
446
spifmc->ctrl = ctrl;
448
449
spifmc->io_base = devm_platform_ioremap_resource(pdev, 0);
450
- if (IS_ERR(base))
451
- return PTR_ERR(base);
+ if (IS_ERR(spifmc->io_base))
+ return PTR_ERR(spifmc->io_base);
452
453
ctrl->num_chipselect = 1;
454
ctrl->dev.of_node = pdev->dev.of_node;
0 commit comments