From patchwork Mon Jul 8 09:38:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2824759 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1E1679F9CA for ; Mon, 8 Jul 2013 09:38:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 36D21200F0 for ; Mon, 8 Jul 2013 09:38:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02EBD200E6 for ; Mon, 8 Jul 2013 09:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751116Ab3GHJiT (ORCPT ); Mon, 8 Jul 2013 05:38:19 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:65468 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067Ab3GHJiS (ORCPT ); Mon, 8 Jul 2013 05:38:18 -0400 Received: from axis700.grange (dslb-094-221-113-239.pools.arcor-ip.net [94.221.113.239]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Lmufk-1UHIuE1MDc-00h2et; Mon, 08 Jul 2013 11:38:10 +0200 Received: by axis700.grange (Postfix, from userid 1000) id E13BB40BB4; Mon, 8 Jul 2013 11:38:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id DE6CB40BB3; Mon, 8 Jul 2013 11:38:09 +0200 (CEST) Date: Mon, 8 Jul 2013 11:38:09 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: Chris Ball Subject: [PATCH] mmc: tmio: fix compiler warning Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:UlFZbDh9tGs+/TE8GHDkFClcqMVOMEAOk9fwgJSJZiy 5urSobD6SZkW98Z+mRYZE2snaCek6D8Y49hHf4D1VQX0Wmzoqu ERKuyuoYl8bxJnzb18ju7QyHzKa3KQ3tqIMp0ItRMNpZbqf70M y3hHv13uATnBaYVRj3SvLi69KReFTwBYid8Ap+9E/L0EXXgnDe lHa9+iFexTGPVeYKDqDbRSMh50OHtalBoXnikQ3bC0DvCPLDp2 gJB0JpebAt7KVPTa/woEF7bo26CZvl3K5x+wsd8AUBtcOgAe+O z30eY6aJ57Wp6Dn6gi8WQ2NKbtJHBbpx4iySm0SuFOOQ0OOxI+ YoWNRBWQ0zAfcEY0Ia4Q8RnhszvbvOO7iKkCHEMzWGRCqPhhkJ EKwy6sRi0Dbrg== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes a compiler warning: drivers/mmc/host/tmio_mmc_pio.c: In function 'tmio_mmc_power_on': drivers/mmc/host/tmio_mmc_pio.c:798:19: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Guennadi Liakhovetski Acked-by: Olof Johansson --- This warning is present in "next" and in 3.10, but since it doesn't affect functionality, I don't think it's needed for stable. drivers/mmc/host/tmio_mmc_pio.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index f294708..84e1888 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -795,9 +795,13 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd) * omap_hsmmc.c driver does. */ if (!IS_ERR(mmc->supply.vqmmc) && !ret) { - regulator_enable(mmc->supply.vqmmc); + ret = regulator_enable(mmc->supply.vqmmc); udelay(200); } + + if (ret < 0) + dev_dbg(&host->pdev->dev, "Regulators failed to power up: %d\n", + ret); } static void tmio_mmc_power_off(struct tmio_mmc_host *host)