From patchwork Tue Dec 15 12:02:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7853951 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2BD759F387 for ; Tue, 15 Dec 2015 12:01:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98EB620304 for ; Tue, 15 Dec 2015 12:00:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70A542035E for ; Tue, 15 Dec 2015 12:00:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965122AbbLOMAo (ORCPT ); Tue, 15 Dec 2015 07:00:44 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34450 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964921AbbLOMAm (ORCPT ); Tue, 15 Dec 2015 07:00:42 -0500 Received: by mail-pa0-f47.google.com with SMTP id wq6so3824280pac.1; Tue, 15 Dec 2015 04:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=aCq3N3VAOvZFbqETwVyiYEsOikRzixU9cAKrC2XuuYE=; b=LaToNuWKZIffIq6g51HEqvE9KmYSNeWyoJZRCRjklTnTMzx0I/1AAdQN9hB37+VSs3 2SAzifwHBJxaeEC801zLDx9rP2+KCf73yr7oxOvH0MZxBtTAUls5/PraIEe4HulDmhx9 JR/MCtvVAbOk9QMDhRI57qiLFrJaKyxkXc3F3u9kzgcfvWI6qDeMJaBAeetYwMC+AI/F 6f2pRmFnIwEY5NrPJ/t1C80O6rfd3faCv2mUOVGW/uzZUxbVKlZFThgmvq6xEhSMXTVe hOtw9ASYgoLVkakvwjrHcx41vjj4bG9Z3k/cVxTF7FanySDX0Yz9HTha9w9yo/7gZrIH 7IJw== X-Received: by 10.66.234.133 with SMTP id ue5mr53885977pac.56.1450180841951; Tue, 15 Dec 2015 04:00:41 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id y75sm1929849pfi.64.2015.12.15.04.00.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2015 04:00:41 -0800 (PST) From: Magnus Damm To: iommu@lists.linux-foundation.org Cc: laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be, linux-sh@vger.kernel.org, joro@8bytes.org, linux-kernel@vger.kernel.org, horms+renesas@verge.net.au, Magnus Damm Date: Tue, 15 Dec 2015 21:02:21 +0900 Message-Id: <20151215120221.26216.739.sendpatchset@little-apple> In-Reply-To: <20151215120212.26216.61530.sendpatchset@little-apple> References: <20151215120212.26216.61530.sendpatchset@little-apple> Subject: [PATCH 01/06] iommu/ipmmu-vmsa: Remove platform data handling Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Magnus Damm The IPMMU driver is using DT these days, and platform data is no longer used by the driver. Remove unused code. Signed-off-by: Magnus Damm Reviewed-by: Laurent Pinchart --- drivers/iommu/ipmmu-vmsa.c | 5 ----- 1 file changed, 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2015-12-15 11:35:00.490513000 +0900 @@ -766,11 +766,6 @@ static int ipmmu_probe(struct platform_d int irq; int ret; - if (!IS_ENABLED(CONFIG_OF) && !pdev->dev.platform_data) { - dev_err(&pdev->dev, "missing platform data\n"); - return -EINVAL; - } - mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL); if (!mmu) { dev_err(&pdev->dev, "cannot allocate device data\n");