mmc: mv_sdhci: zero out sdhci_host structure
authorMatt Pelland <mpelland@starry.com>
Mon, 16 Apr 2018 14:08:18 +0000 (10:08 -0400)
committerStefan Roese <sr@denx.de>
Tue, 17 Apr 2018 08:39:30 +0000 (10:39 +0200)
commitca4e7d674ee6931c7a4effd697e644d7646cfac0
tree1256619bd4f1f291854685ca4c9341268308da2f
parent8c0a17be0a632b9a823e14628c42f85c3e64f08e
mmc: mv_sdhci: zero out sdhci_host structure

The mv_sdhci driver was not zeroing the sdhci_host structure it
allocates causing random access violations in parts of the mmc core
where the "ops" member pointers are checked and called if not NULL.

Signed-off-by: Matt Pelland <mpelland@starry.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mmc/mv_sdhci.c