4382571f5fcf2eef17a889d95dcbf260a12cb35d
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.19 / 950-0185-Fix-warning-in-bcm2835-smi-nand.patch
1 From bb7479c2adc27bd21e5fae14df21d4f9e89a8aac Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 12 Nov 2018 22:56:35 +0000
4 Subject: [PATCH 185/703] Fix warning in bcm2835-smi-nand
5
6 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
7 ---
8 drivers/mtd/nand/raw/bcm2835_smi_nand.c | 2 --
9 1 file changed, 2 deletions(-)
10
11 --- a/drivers/mtd/nand/raw/bcm2835_smi_nand.c
12 +++ b/drivers/mtd/nand/raw/bcm2835_smi_nand.c
13 @@ -135,10 +135,8 @@ static int bcm2835_smi_nand_probe(struct
14 struct mtd_info *mtd;
15 struct device *dev = &pdev->dev;
16 struct device_node *node = dev->of_node, *smi_node;
17 - struct mtd_part_parser_data ppdata;
18 struct smi_settings *smi_settings;
19 struct bcm2835_smi_instance *smi_inst;
20 - int ret = -ENXIO;
21
22 if (!node) {
23 dev_err(dev, "No device tree node supplied!");