Tinker S reboot fix fix refix

This commit is contained in:
tonymac32 2018-03-04 22:00:42 -05:00
parent 5a6da62a63
commit add26561dc

View file

@ -1,3 +1,16 @@
diff --git a/drivers/mmc/host/dw_mmc-rockchip.c b/drivers/mmc/host/dw_mmc-rockchip.c
index 3fc65f4..274ddba 100644
--- a/drivers/mmc/host/dw_mmc-rockchip.c
+++ b/drivers/mmc/host/dw_mmc-rockchip.c
@@ -291,7 +291,7 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev)
static void dw_mci_rockchip_platfm_shutdown(struct platform_device *pdev)
{
struct dw_mci *host = platform_get_drvdata(pdev);
- struct mmc_host *mmc = host->cur_slot->mmc;
+ struct mmc_host *mmc = host->slot[0]->mmc;
int ret;
if(of_machine_is_compatible("rockchip,rk3288-miniarm")){
diff --git a/arch/arm/boot/dts/rk3288-miniarm.dts b/arch/arm/boot/dts/rk3288-miniarm.dts
index 5371310..e9c9eac 100644
--- a/arch/arm/boot/dts/rk3288-miniarm.dts