Skip to content

Commit 8881195

Browse files
Aapo VienamoBartosz Golaszewski
authored andcommitted
gpio: graniterapids: Add missing raw_spinlock_init()
Add the missing raw_spin_lock_init() call to gnr_gpio_probe(). Fixes: ecc4b14 ("gpio: Add Intel Granite Rapids-D vGPIO driver") Signed-off-by: Aapo Vienamo <[email protected]> Acked-by: Mika Westerberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 7aa9b96 commit 8881195

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpio-graniterapids.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ static int gnr_gpio_probe(struct platform_device *pdev)
296296
if (!priv)
297297
return -ENOMEM;
298298

299+
raw_spin_lock_init(&priv->lock);
300+
299301
regs = devm_platform_ioremap_resource(pdev, 0);
300302
if (IS_ERR(regs))
301303
return PTR_ERR(regs);

0 commit comments

Comments
 (0)