mmc: atmel-mci: Incapsulate used to be a platform data into host structure
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 25 Apr 2024 17:08:44 +0000 (20:08 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 26 Apr 2024 04:51:09 +0000 (06:51 +0200)
commit0a454e952308867ddf0ced08b9745bddb5156998
tree0b6b5222932bec45839fbcdea6a526c83693ed21
parent0b7b565d106e7ca4959092973b885b21a1e0ba4b
mmc: atmel-mci: Incapsulate used to be a platform data into host structure

After platform data is gone, we always allocate memory for the slot
information. Incapsulate the array of the latter into the host structure,
so we allocate memory only once. This makes code simpler.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240425170900.3767990-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c