Skip to content

Commit d346da4

Browse files
committed
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
2 parents 06d5d30 + 07f1dc8 commit d346da4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/ide/falconide.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ static int __init falconide_init(struct platform_device *pdev)
164164
if (rc)
165165
goto err_free;
166166

167+
platform_set_drvdata(pdev, host);
167168
return 0;
168169
err_free:
169170
ide_host_free(host);
@@ -174,7 +175,7 @@ static int __init falconide_init(struct platform_device *pdev)
174175

175176
static int falconide_remove(struct platform_device *pdev)
176177
{
177-
struct ide_host *host = dev_get_drvdata(&pdev->dev);
178+
struct ide_host *host = platform_get_drvdata(pdev);
178179

179180
ide_host_remove(host);
180181

0 commit comments

Comments
 (0)