int renesas_sdhi_remove(struct platform_device *pdev)
 {
-       struct mmc_host *mmc = platform_get_drvdata(pdev);
-       struct tmio_mmc_host *host = mmc_priv(mmc);
+       struct tmio_mmc_host *host = platform_get_drvdata(pdev);
 
        tmio_mmc_host_remove(host);
 
 
 static int tmio_mmc_remove(struct platform_device *pdev)
 {
        const struct mfd_cell *cell = mfd_get_cell(pdev);
-       struct mmc_host *mmc = platform_get_drvdata(pdev);
+       struct tmio_mmc_host *host = platform_get_drvdata(pdev);
 
-       if (mmc) {
-               struct tmio_mmc_host *host = mmc_priv(mmc);
-
-               tmio_mmc_host_remove(host);
-               if (cell->disable)
-                       cell->disable(pdev);
-       }
+       tmio_mmc_host_remove(host);
+       if (cell->disable)
+               cell->disable(pdev);
 
        return 0;
 }
 
                return ret;
 
        _host->pdata = pdata;
-       platform_set_drvdata(pdev, mmc);
+       platform_set_drvdata(pdev, _host);
 
        _host->set_pwr = pdata->set_pwr;
        _host->set_clk_div = pdata->set_clk_div;
 #ifdef CONFIG_PM
 int tmio_mmc_host_runtime_suspend(struct device *dev)
 {
-       struct mmc_host *mmc = dev_get_drvdata(dev);
-       struct tmio_mmc_host *host = mmc_priv(mmc);
+       struct tmio_mmc_host *host = dev_get_drvdata(dev);
 
        tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL);
 
 
 int tmio_mmc_host_runtime_resume(struct device *dev)
 {
-       struct mmc_host *mmc = dev_get_drvdata(dev);
-       struct tmio_mmc_host *host = mmc_priv(mmc);
+       struct tmio_mmc_host *host = dev_get_drvdata(dev);
 
        tmio_mmc_reset(host);
        tmio_mmc_clk_enable(host);