X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fide%2Ffalconide.c;h=bb86d84558d9ad24403874c85abaa3ee0ad8e74f;hb=4a9ab454ae9bda262802179cae4f5700736e8bd6;hp=77af4c1a3f38ce41d037d707f05b4187f85188cf;hpb=7c2d18357f2c4d26e727e76245e297ffdbc03097;p=linux-2.6-microblaze.git diff --git a/drivers/ide/falconide.c b/drivers/ide/falconide.c index 77af4c1a3f38..bb86d84558d9 100644 --- a/drivers/ide/falconide.c +++ b/drivers/ide/falconide.c @@ -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);