From: Tom Rini Date: Tue, 4 Nov 2014 10:56:11 -0500 Subject: [U-Boot] [PATCH v2 1/2] mmc: Board-specific MMC power initializations In-Reply-To: <1414838144-4270-1-git-send-email-contact@paulk.fr> References: <1414517144-2183-1-git-send-email-contact@paulk.fr> <1414838144-4270-1-git-send-email-contact@paulk.fr> Message-ID: <20141104155611.GK15133@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 01, 2014 at 11:35:43AM +0100, Paul Kocialkowski wrote: > Some devices may use non-standard combinations of regulators to power MMC: > this allows these devices to provide a board-specific MMC power init function > to set everything up in their own way. > > Signed-off-by: Paul Kocialkowski > --- > drivers/mmc/mmc.c | 8 ++++++++ > include/mmc.h | 2 ++ > 2 files changed, 10 insertions(+) > > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > index 44a4feb..125f347 100644 > --- a/drivers/mmc/mmc.c > +++ b/drivers/mmc/mmc.c > @@ -1277,6 +1277,12 @@ block_dev_desc_t *mmc_get_dev(int dev) > } > #endif > > +/* board-specific MMC power initializations. */ > +__weak int board_mmc_power_init(void) > +{ > + return -1; > +} Since we don't check error return here which I think is fine just make this a void? Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: