From patchwork Thu May 22 09:18:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30574 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 843B320369 for ; Thu, 22 May 2014 09:18:50 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lc6sf10575674vcb.11 for ; Thu, 22 May 2014 02:18:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=YDxPk5aJkKSQ83ZB8JgAMjWYNWbaoK0ZhOOQRiu0rw0=; b=gEtbIy2tGhCU4e7TmpKRzHdDFdDf5vabf9cVZ7ZeT+CUnKk2jW8YL5wE1kUL/gX7ZM sMbUXGtJPweQjvAbvxwxkCMPIwPQ9T48j/w1VAFKFyFHusuH7FhscFuej1sVDh/vAuPE BAvgRPr8gs/3LhqdWPcAhHCezZ7JDPBCu3PMh/2izcd5AylY0LniGDHpcpe1NtFKmGGt RCjlPMRiImr4OULJYo/U4VA/ahgjuAjwYAMFyR8JET+oHiZogEnRS/ZbnWzUKaWnwj+q 3LDY26PyAHPtYqvzBcYrU2D6x4SJ/lC+ky1n2AGyLmuJ2/Of3RMNKqjwYa4KEGjGXR11 +pWw== X-Gm-Message-State: ALoCoQlflMyaUcu6d/IWoC9kIywUik3hpHKnNxM7+hoZeLY6hayxAKMZvuLbqEB+xRfJtCVEEpSf X-Received: by 10.58.198.130 with SMTP id jc2mr27008445vec.9.1400750330250; Thu, 22 May 2014 02:18:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.72 with SMTP id j66ls1256313qge.99.gmail; Thu, 22 May 2014 02:18:50 -0700 (PDT) X-Received: by 10.221.64.80 with SMTP id xh16mr802617vcb.35.1400750330177; Thu, 22 May 2014 02:18:50 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id qy9si4502050vcb.69.2014.05.22.02.18.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 02:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id jw12so4058022veb.33 for ; Thu, 22 May 2014 02:18:50 -0700 (PDT) X-Received: by 10.52.185.72 with SMTP id fa8mr12489388vdc.12.1400750330105; Thu, 22 May 2014 02:18:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp181880vcb; Thu, 22 May 2014 02:18:49 -0700 (PDT) X-Received: by 10.50.79.161 with SMTP id k1mr20606318igx.31.1400750329555; Thu, 22 May 2014 02:18:49 -0700 (PDT) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by mx.google.com with ESMTPS id j5si7163588igh.21.2014.05.22.02.18.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 02:18:49 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.223.169 as permitted sender) client-ip=209.85.223.169; Received: by mail-ie0-f169.google.com with SMTP id at1so3277633iec.0 for ; Thu, 22 May 2014 02:18:49 -0700 (PDT) X-Received: by 10.43.66.202 with SMTP id xr10mr23881248icb.77.1400750329270; Thu, 22 May 2014 02:18:49 -0700 (PDT) Received: from localhost.localdomain (host109-148-113-200.range109-148.btcentralplus.com. [109.148.113.200]) by mx.google.com with ESMTPSA id u10sm11964747igz.21.2014.05.22.02.18.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 02:18:48 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Linus Walleij Subject: [PATCH] mfd: abx500-core: Remove unused function abx500_dump_all_banks() Date: Thu, 22 May 2014 10:18:29 +0100 Message-Id: <1400750311-15323-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , abx500_dump_all_banks() has no callers in the kernel, so it's probably safe to remove it. Cc: Linus Walleij Signed-off-by: Lee Jones --- drivers/mfd/abx500-core.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/mfd/abx500-core.c b/drivers/mfd/abx500-core.c index d6d0ec4..fe41899 100644 --- a/drivers/mfd/abx500-core.c +++ b/drivers/mfd/abx500-core.c @@ -151,26 +151,6 @@ int abx500_startup_irq_enabled(struct device *dev, unsigned int irq) } EXPORT_SYMBOL(abx500_startup_irq_enabled); -int abx500_dump_all_banks(void) -{ - struct abx500_ops *ops; - struct device *dummy_child; - struct abx500_device_entry *dev_entry; - - dummy_child = kzalloc(sizeof(struct device), GFP_KERNEL); - if (!dummy_child) - return -ENOMEM; - list_for_each_entry(dev_entry, &abx500_list, list) { - dummy_child->parent = dev_entry->dev; - ops = &dev_entry->ops; - - if ((ops != NULL) && (ops->dump_all_banks != NULL)) - ops->dump_all_banks(dummy_child); - } - kfree(dummy_child); -} -EXPORT_SYMBOL(abx500_dump_all_banks); - MODULE_AUTHOR("Mattias Wallin "); MODULE_DESCRIPTION("ABX500 core driver"); MODULE_LICENSE("GPL");