Skip to content

Commit 44d8062

Browse files
committed
Merge tag 'spi-fix-v5.10-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fix from Mark Brown: "This is an additional fix on top of 5e31ba0 ('spi: bcm2835: fix gpio cs level inversion') - when sending my prior pull request I had misremembred the status of that patch, apologies for the noise here" * tag 'spi-fix-v5.10-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: bcm2835: remove use of uninitialized gpio flags variable
2 parents bb72bbe + bc7f2cd commit 44d8062

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/spi/spi-bcm2835.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,6 @@ static int bcm2835_spi_setup(struct spi_device *spi)
11931193
struct spi_controller *ctlr = spi->controller;
11941194
struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
11951195
struct gpio_chip *chip;
1196-
enum gpio_lookup_flags lflags;
11971196
u32 cs;
11981197

11991198
/*
@@ -1261,7 +1260,7 @@ static int bcm2835_spi_setup(struct spi_device *spi)
12611260

12621261
spi->cs_gpiod = gpiochip_request_own_desc(chip, 8 - spi->chip_select,
12631262
DRV_NAME,
1264-
lflags,
1263+
GPIO_LOOKUP_FLAGS_DEFAULT,
12651264
GPIOD_OUT_LOW);
12661265
if (IS_ERR(spi->cs_gpiod))
12671266
return PTR_ERR(spi->cs_gpiod);

0 commit comments

Comments
 (0)