Re: [PATCH] mmc: davinci: Drop pointer to mmc_host from mmc_davinci_host

From: Ulf Hansson
Date: Fri Sep 25 2020 - 07:32:22 EST


On Thu, 24 Sep 2020 at 14:49, Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:
>
> On Sun, 20 Sep 2020 at 22:51, Amey Narkhede <ameynarkhede03@xxxxxxxxx> wrote:
> >
> > The TI DaVinci MMC host driver uses a pointer to get from
> > the private mmc_davinci_host structure to generic mmc_host
> > structure. However mmc_host always immediately precedes
> > mmc_davinci_host in memory hence get the address of that
> > mmc_host structure using mmc_from_priv() which performs
> > subtraction(which is cheaper than a dereference) and drop
> > the unnecessary pointer.
> >
> > Signed-off-by: Amey Narkhede <ameynarkhede03@xxxxxxxxx>
>
> Applied for next, thanks!

Turned out that this one did cause build errors, so I have dropped it
from my next branch.

Please re-spin a v2 and make sure to run a build test before you submit again.

[...]

Kind regards
Uffe