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: 66230 Delivered-To: patches@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2588473qge; Wed, 20 Apr 2016 10:49:07 -0700 (PDT) X-Received: by 10.112.140.3 with SMTP id rc3mr4222318lbb.85.1461174547721; Wed, 20 Apr 2016 10:49:07 -0700 (PDT) Return-Path: Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com. [2a00:1450:4010:c04::233]) by mx.google.com with ESMTPS id oq4si4137851lbb.120.2016.04.20.10.49.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Apr 2016 10:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) client-ip=2a00:1450:4010:c04::233; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lb0-x233.google.com with SMTP id u8so13570131lbk.0 for ; Wed, 20 Apr 2016 10:49:07 -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=e8A87yrwL2yJS3oCCpykLY53YKCr4UD0pOpitKpUra5hrw6gTdvUW79g2OnPh9Qpss DoeAaMqnNuk8NoJC/CrS/npjHYQR1SyQJrTFRBvhcj6t6hcKOiCL6BK+nP3R/Ayf+WCv v0vICgMb3OqShMYPPHnyBZKxQMRGsadYfhqLczPFINtGSFIZlvNbDf1UQVSbKzTwN08Z FSLlBWrSPCwnAmHKYC4AagO81JbaspZwyAupiz2fqLWpIiMNZ59hSi6sbov3d3wbGtYV n8qgrzylnLfoHjQjcqtwquCoVZctLicW04rnD5E8PgNIO1jCKOTtl2HeWkLJ8peQf98w Kdfw== X-Gm-Message-State: AOPr4FWgVWT3lYePDlL7SYtczozlqoXwJfZZhoSfUTEX5VKiCVYsF2J90W6jsygeYvmty42UYd0= X-Received: by 10.112.146.164 with SMTP id td4mr1250903lbb.82.1461174547416; Wed, 20 Apr 2016 10:49:07 -0700 (PDT) Return-Path: 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 Cc: Ulf Hansson 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 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(-) -- 1.9.1 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,