Skip to content

Commit

Permalink
actually initialize the completion the first time
Browse files Browse the repository at this point in the history
turns out i was dumb and forgot to init the completion lol

Signed-off-by: amarioguy <arminders208@outlook.com>
  • Loading branch information
amarioguy committed Aug 20, 2022
1 parent d629235 commit 5731e5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-pasemi-platform.c
Expand Up @@ -84,6 +84,7 @@ static int pasemi_platform_i2c_probe(struct platform_device *pdev)
goto out_clk_disable;

smbus->use_irq = 0;
init_completion(&smbus->irq_completion);
irq_num = platform_get_irq(pdev, 0);
error = request_irq(irq_num, pasemi_irq_handler, 0, "pasemi_apple_i2c", (void *)smbus);
if(!error)
Expand Down

0 comments on commit 5731e5b

Please sign in to comment.