From patchwork Sun Sep 25 09:07:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76971 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp649332qgf; Sun, 25 Sep 2016 02:08:17 -0700 (PDT) X-Received: by 10.98.192.130 with SMTP id g2mr28357298pfk.54.1474794497508; Sun, 25 Sep 2016 02:08:17 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si18453225pfc.249.2016.09.25.02.08.17; Sun, 25 Sep 2016 02:08:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965871AbcIYJIO (ORCPT + 27 others); Sun, 25 Sep 2016 05:08:14 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34755 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965748AbcIYJIM (ORCPT ); Sun, 25 Sep 2016 05:08:12 -0400 Received: by mail-pa0-f49.google.com with SMTP id zl8so2887175pac.1 for ; Sun, 25 Sep 2016 02:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WADpi5GvLdH8GncKIvL3W1xdee0mRAb5uaWFtvdKB7Y=; b=hccZGKSmczpwzj/32RCXPBP2tF4R4TcuntzwN8qRVKBKsTHaIhr+nNDJxU0QsMmuKe 4eC6NelxrLI4vYkMKFOtxolMx0cDLpRM2oiOhT4qVZpNTZRkVxBlZSjV85II1mgNTn27 30WRkwNU9YVLx117Dftfa54TUkY1tlsrrm6t8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WADpi5GvLdH8GncKIvL3W1xdee0mRAb5uaWFtvdKB7Y=; b=fHKGXnEQixaVIaE8nlBIv3M8FFcRRuo13pD36eqd2sCY8NvxLjFYvS/7OvmpEhuMhu YDEuTZYTrn8+T5Ghm8SmASk2M2EiMuPrpbt6VvxnPTQnQINgx6QdPrtCmmZD98gfmtK9 MqY1zEQ2zSxwjsxE1dg8CAQCTk5Hbo1XgiCmxiUiLSEg1sPE4rPPDHx+7a/qFbdEhNkd 8uTvyx7Cur6M+Nn31KU/sghxGai5t9FcRgdRNktShU/KsPvvZilAfkVXqCsSS90q+wlD QIddBUahdRfthDkPakVqwIFc8WJM5FkBr/l4FDh5mAntU7Gng3rPX2M8OckjUdXh9qmK Z9Ow== X-Gm-Message-State: AE9vXwOj1S2sXNtZlpZrg9qHAOhWY83xxoAwMkd5aWlSuv2C1QC9UwY/5TsUHVgunmLVjad0 X-Received: by 10.66.20.168 with SMTP id o8mr28002193pae.27.1474794491628; Sun, 25 Sep 2016 02:08:11 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id w9sm22801261pfg.34.2016.09.25.02.08.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 02:08:10 -0700 (PDT) From: Baoyou Xie To: a.zummo@towertech.it, alexandre.belloni@free-electrons.com Cc: rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH] rtc: rtc-jz4740: remove unused function in rtc-jz4740.c Date: Sun, 25 Sep 2016 17:07:29 +0800 Message-Id: <1474794449-26185-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/rtc/rtc-jz4740.c:206:6: warning: no previous prototype for 'jz4740_rtc_poweroff' [-Wmissing-prototypes] In fact, this function is unused in drivers/rtc/rtc-jz4740.c, but should be removed. So this patch removes the unused function. Signed-off-by: Baoyou Xie --- drivers/rtc/rtc-jz4740.c | 7 ------- 1 file changed, 7 deletions(-) -- 2.7.4 diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index 5e14651..4788cc0 100644 --- a/drivers/rtc/rtc-jz4740.c +++ b/drivers/rtc/rtc-jz4740.c @@ -203,13 +203,6 @@ static irqreturn_t jz4740_rtc_irq(int irq, void *data) return IRQ_HANDLED; } -void jz4740_rtc_poweroff(struct device *dev) -{ - struct jz4740_rtc *rtc = dev_get_drvdata(dev); - jz4740_rtc_reg_write(rtc, JZ_REG_RTC_HIBERNATE, 1); -} -EXPORT_SYMBOL_GPL(jz4740_rtc_poweroff); - static int jz4740_rtc_probe(struct platform_device *pdev) { int ret;