--- zzzz-none-000/linux-4.9.279/drivers/mmc/core/bus.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/drivers/mmc/core/bus.c 2023-02-08 10:58:13.000000000 +0000 @@ -11,6 +11,13 @@ * MMC card bus driver model */ +/* + * Includes Intel Corporation's changes/modifications dated: 2011, 2017, 2018. + * Changed/modified portions - Copyright (c) 2011-2018, Intel Corporation. + */ + + + #include #include #include @@ -125,6 +132,7 @@ return 0; } +#ifndef CONFIG_ARCH_GEN3 static void mmc_bus_shutdown(struct device *dev) { struct mmc_driver *drv = to_mmc_driver(dev->driver); @@ -142,6 +150,7 @@ mmc_hostname(host), ret); } } +#endif #ifdef CONFIG_PM_SLEEP static int mmc_bus_suspend(struct device *dev) @@ -207,7 +216,10 @@ .uevent = mmc_bus_uevent, .probe = mmc_bus_probe, .remove = mmc_bus_remove, +#ifndef CONFIG_ARCH_GEN3 + /* exclude eMMC mmc_bus_shutdown for ARM */ .shutdown = mmc_bus_shutdown, +#endif .pm = &mmc_bus_pm_ops, };