From patchwork Thu May 22 11:30:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30609 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8FDD520369 for ; Thu, 22 May 2014 11:30:28 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id w10sf10137562pde.5 for ; Thu, 22 May 2014 04:30:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:in-reply-to:user-agent:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-disposition; bh=dGzStAacHpu/ZVqef3hr6rWHwhDXiQ1QbWNuN6yg6ig=; b=ixhjBQUWN2ENjlDmtW9S0ExVwXrC4KMXRW/y8eyGA/EAnA4BgMj4JPnXftpbsd4zZE r6OL/S+RJrRjLyVgYeZ1tf6ZfQMrlsr5T9ellJZJ1zXADdOY3AJhlh7oSVWthtdFuCd7 i+NK6s8bcDjZyrHKrUismEVzbCj+MSa7VjqcFPh8DZvh6exJoomP5a97bbNzFDsTZ6ot 8yvftMSeNqg/KeS65ivVHvcotODX2ZpCO6xOkfItaw1hViaAy45YzAx6pErpmSeMCOv3 5BDpY3PfOVD7FY43H+niVpI5ZbUM6/aO+WyhEllWAql8+3hDkzgRePe+9mqnu/4g97Qt drgw== X-Gm-Message-State: ALoCoQkSfwjmC8CHYAA4ogvpJo6hUoKLe/xRk6ZxRhu9UQTBwl83B1NZNpz7PkWv0hYuhKsg0mU7 X-Received: by 10.66.234.39 with SMTP id ub7mr27059185pac.26.1400758227632; Thu, 22 May 2014 04:30:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.4 with SMTP id a4ls1204277qga.45.gmail; Thu, 22 May 2014 04:30:27 -0700 (PDT) X-Received: by 10.58.29.16 with SMTP id f16mr36575832veh.23.1400758227467; Thu, 22 May 2014 04:30:27 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id xs6si2946779vdb.0.2014.05.22.04.30.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 04:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so844155vcb.22 for ; Thu, 22 May 2014 04:30:27 -0700 (PDT) X-Received: by 10.58.195.130 with SMTP id ie2mr14677816vec.3.1400758227152; Thu, 22 May 2014 04:30:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp190364vcb; Thu, 22 May 2014 04:30:26 -0700 (PDT) X-Received: by 10.66.150.169 with SMTP id uj9mr66215926pab.148.1400758226196; Thu, 22 May 2014 04:30:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ua1si33246761pab.16.2014.05.22.04.30.25; Thu, 22 May 2014 04:30:25 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754687AbaEVLaR (ORCPT + 27 others); Thu, 22 May 2014 07:30:17 -0400 Received: from mail-ie0-f181.google.com ([209.85.223.181]:52805 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752581AbaEVLaP (ORCPT ); Thu, 22 May 2014 07:30:15 -0400 Received: by mail-ie0-f181.google.com with SMTP id rp18so1826776iec.12 for ; Thu, 22 May 2014 04:30:14 -0700 (PDT) X-Received: by 10.50.30.6 with SMTP id o6mr21143238igh.43.1400758214700; Thu, 22 May 2014 04:30:14 -0700 (PDT) Received: from lee--X1 (host109-148-113-200.range109-148.btcentralplus.com. [109.148.113.200]) by mx.google.com with ESMTPSA id is8sm12689409igb.7.2014.05.22.04.30.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 22 May 2014 04:30:14 -0700 (PDT) Date: Thu, 22 May 2014 12:30:10 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Jay Aurabind Subject: [PATCH v2] mfd: abx500-core: Remove unused function abx500_dump_all_banks() Message-ID: <20140522113010.GT6679@lee--X1> References: <1400750311-15323-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 In-Reply-To: <1400750311-15323-1-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.220.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-Disposition: inline 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 Acked-by: Linus Walleij --- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ 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"); diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h index df2508f..552cc1d 100644 --- a/include/linux/mfd/abx500.h +++ b/include/linux/mfd/abx500.h @@ -330,7 +330,6 @@ int abx500_mask_and_set_register_interruptible(struct device *dev, u8 bank, int abx500_get_chip_id(struct device *dev); int abx500_event_registers_startup_state_get(struct device *dev, u8 *event); int abx500_startup_irq_enabled(struct device *dev, unsigned int irq); -int abx500_dump_all_banks(void); struct abx500_ops { int (*get_chip_id) (struct device *);