From patchwork Sat May 25 11:25:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 2613251 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7F0E13FD4E for ; Sat, 25 May 2013 11:27:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755597Ab3EYL1R (ORCPT ); Sat, 25 May 2013 07:27:17 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:64519 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754244Ab3EYL1R (ORCPT ); Sat, 25 May 2013 07:27:17 -0400 Received: by mail-bk0-f46.google.com with SMTP id my13so2941504bkb.5 for ; Sat, 25 May 2013 04:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=8LEy4jkOfVdL4NL3Oa7rarGHYp1cf5UpboJPFQGRhyc=; b=sAMWwM7M5omtRFbqNlVkOTILdJq3EP2rRbVckOPF+LOUy/WQ5yBwCXbGj5is3txHDM HPz2GSFTQpJKwvTsJwNjZHlWRGlVDoyHE+9RnqdIYS3tcgDYDfALW/+UutSQhxwIiIUN tLaiRc7idA/YXZlT6MXQqCJjMX2A/M2xss5MyAegRwQKVHJCO7ud+wKBFOzsriCqK5Te V9QszXRrlhlEY1pRzF2UheUf+vYdkC/JMmj52j3nP91a0aicb7IXVMA/EG3Y02/v8+pO tSAOpdbICYp2UeGQQBBL6k4BOsOvt94YwQgVD7dtcy+75CNjNYA868yuJo2i1YAikWDd Qtlw== X-Received: by 10.204.74.138 with SMTP id u10mr10284596bkj.113.1369481236055; Sat, 25 May 2013 04:27:16 -0700 (PDT) Received: from localhost.localdomain (093105185086.warszawa.vectranet.pl. [93.105.185.86]) by mx.google.com with ESMTPSA id b12sm5522266bkz.0.2013.05.25.04.27.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 25 May 2013 04:27:15 -0700 (PDT) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: a.hajda@samsung.com, arun.kk@samsung.com, k.debski@samsung.com, t.stanislaws@samsung.com, Sylwester Nawrocki Subject: [PATCH 2/5] s5p-tv: Don't ignore return value of regulator_enable() in sii9234_drv.c Date: Sat, 25 May 2013 13:25:52 +0200 Message-Id: <1369481155-30446-3-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1369481155-30446-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1369481155-30446-1-git-send-email-sylvester.nawrocki@gmail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch fixes following compilation warning: CC [M] drivers/media/platform/s5p-tv/sii9234_drv.o drivers/media/platform/s5p-tv/sii9234_drv.c: In function ‘sii9234_runtime_resume’: drivers/media/platform/s5p-tv/sii9234_drv.c:252:18: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result Cc: Tomasz Stanislawski Signed-off-by: Sylwester Nawrocki --- drivers/media/platform/s5p-tv/sii9234_drv.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-tv/sii9234_drv.c b/drivers/media/platform/s5p-tv/sii9234_drv.c index 39b77d2..3dd762e 100644 --- a/drivers/media/platform/s5p-tv/sii9234_drv.c +++ b/drivers/media/platform/s5p-tv/sii9234_drv.c @@ -249,7 +249,9 @@ static int sii9234_runtime_resume(struct device *dev) int ret; dev_info(dev, "resume start\n"); - regulator_enable(ctx->power); + ret = regulator_enable(ctx->power); + if (ret < 0) + return ret; ret = sii9234_reset(ctx); if (ret)