bcm2835-virtgpio: Update for Linux 6.6
authorPhil Elwell <phil@raspberrypi.com>
Thu, 21 Dec 2023 15:13:37 +0000 (15:13 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:24 +0000 (11:35 +0000)
commitf54c10967b9abdf04b8f9850c83480430e58c0a4
tree83d2f316bd15b3dd8c80ca8d1fd6148dc72831ce
parent3fb94ab423bde788663133bdf795336d11b01348
bcm2835-virtgpio: Update for Linux 6.6

The gpio subsystem is happier if the gpiochip is given a parent, and
if it doesn't have a fixed base gpio number. While we're in here,
use the fact that the firmware node is the parent to locate it,
and use the devm_ version of rpi_firmware_get.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/gpio/gpio-bcm-virt.c