Skip to content

Commit

Permalink
Merge tag 'ide-5.11-2021-02-28' of git://git.kernel.dk/linux-block
Browse files Browse the repository at this point in the history
Pull ide fix from Jens Axboe:
 "This is a leftover fix from 5.11, where I forgot to ship it your way"

* tag 'ide-5.11-2021-02-28' of git://git.kernel.dk/linux-block:
  ide/falconide: Fix module unload
  • Loading branch information
torvalds committed Feb 28, 2021
2 parents 06d5d30 + 07f1dc8 commit d346da4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ide/falconide.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ static int __init falconide_init(struct platform_device *pdev)
if (rc)
goto err_free;

platform_set_drvdata(pdev, host);
return 0;
err_free:
ide_host_free(host);
Expand All @@ -174,7 +175,7 @@ static int __init falconide_init(struct platform_device *pdev)

static int falconide_remove(struct platform_device *pdev)
{
struct ide_host *host = dev_get_drvdata(&pdev->dev);
struct ide_host *host = platform_get_drvdata(pdev);

ide_host_remove(host);

Expand Down

0 comments on commit d346da4

Please sign in to comment.