mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 20:30:58 +02:00
Merge tag 'ide-5.11-2021-02-28' of git://git.kernel.dk/linux-block
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
This commit is contained in:
@@ -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);
|
||||
@@ -174,7 +175,7 @@ err:
|
||||
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user