From patchwork Wed Apr 20 17:49:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 8893821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3BD25BF29F for ; Wed, 20 Apr 2016 17:51:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 78E4920254 for ; Wed, 20 Apr 2016 17:51:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B38F32020F for ; Wed, 20 Apr 2016 17:51:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aswFo-0000RF-R6; Wed, 20 Apr 2016 17:49:32 +0000 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aswFl-0000Pn-NM for linux-arm-kernel@lists.infradead.org; Wed, 20 Apr 2016 17:49:30 +0000 Received: by mail-lb0-x22c.google.com with SMTP id u8so13570130lbk.0 for ; Wed, 20 Apr 2016 10:49:08 -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=TJxiQMrK7djEj/n3nYEHX9weufDw3JFsCXejvQq21Lg=; b=cXOXNKxf3zET2knWhhBlZHbEHPsCCYPYqOuHTU9beVFv7VVUwmhmmB/4+KW4uJ/QgH 8RZqSNT1944PBNj8/eBWfqq3lFaRRT4dtS7oLEAHI1KcOwQeMcaEe+JzY3H9vl5TmZy/ SKgKeyxok/b+t+KmUVD0dhPpFjyZx7F5KXBOc= 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=TJxiQMrK7djEj/n3nYEHX9weufDw3JFsCXejvQq21Lg=; b=lQV1BlmJcqxCNdLOALhNG+zc+vDfd9mbC0kQJaRT5Gyb4K55/VwBW4FdCdZxw1cAbl y0P3WN4GqMfrjUUgRLFp5TA13dh97VVWeScAHyj3wgY27/OvSRzSq28sK6mTfOLOiI6z 0zBE6fX+tOa13f+tNwqMvqnuoMxZhuk5zuZ6Id2a26u8LJTthVJURVNAWbmjQiDyemh2 QlyPEDb8w/uayqrWF/5mvO9eA4iPF+eQ4brVkP6KG2e/tSZ8M7r3vo3ImF7N8Or47hjt nvtbxtpTobgzFvrZCbCOGHb9GdVUPpPTVNfkDqfjjlddOhEI1pyrI6dDUyIaa/qIh/R1 4yKg== X-Gm-Message-State: AOPr4FV7UUXR5oHT3RLgfFPUol5gaCu2chBzS2EP5vi1wkE4voMsgGX2T8ekpzK/2kkkixfV X-Received: by 10.112.146.164 with SMTP id td4mr1250903lbb.82.1461174547416; Wed, 20 Apr 2016 10:49:07 -0700 (PDT) Received: from localhost.localdomain (h-155-4-128-67.na.cust.bahnhof.se. [155.4.128.67]) by smtp.gmail.com with ESMTPSA id n184sm1283552lfb.37.2016.04.20.10.49.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 10:49:05 -0700 (PDT) From: Ulf Hansson To: Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH] AMBA: Drop redundant assignment of the system PM callbacks Date: Wed, 20 Apr 2016 19:49:01 +0200 Message-Id: <1461174541-21942-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160420_104930_172503_9142F945 X-CRM114-Status: GOOD ( 10.32 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 Instead of assigning the system PM callbacks to the pm_generic_* helpers, we can rely on the PM core to get the same behaviour. Therefore let's drop the assignments. Signed-off-by: Ulf Hansson --- drivers/amba/bus.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index f009936..1e4f57f 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -172,12 +172,6 @@ static int amba_pm_runtime_resume(struct device *dev) #endif /* CONFIG_PM */ static const struct dev_pm_ops amba_pm = { - .suspend = pm_generic_suspend, - .resume = pm_generic_resume, - .freeze = pm_generic_freeze, - .thaw = pm_generic_thaw, - .poweroff = pm_generic_poweroff, - .restore = pm_generic_restore, SET_RUNTIME_PM_OPS( amba_pm_runtime_suspend, amba_pm_runtime_resume,