From patchwork Tue May 11 08:50:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 434174 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3622004jao; Tue, 11 May 2021 01:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAVlV68pBKfLb1kOm/m49bBX6IU1lNkasnXSounkeMKh1I2iclOyUuav63+JOaZosv5p5l X-Received: by 2002:a17:907:9620:: with SMTP id gb32mr29980465ejc.331.1620723080160; Tue, 11 May 2021 01:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620723080; cv=none; d=google.com; s=arc-20160816; b=fUM6M7ilEE+E1SlapAjZ0heOLNGttGQt7DpoGMvU7vz4ed+Q9xD42rkKSWQ5+9kuj5 Nv1pq+kt5BNqv/iWX1OXKn5tvX+BqszIPsGHaZE0FiafXvsGP/v4itaJmTIlyUnAAiaV q95PtwSQoO4104IIvBPCYgv2gdRxAf/+65sU0uuEUIq+LUMFkaUeu1FrmFD654tLr0jx qLZB1wBdXgS35e4aw5T/JC8K/luT0cztKl5JpcDifO3tnHq314zGNOS3BDiHoD10lh1q Lr8kiFnTEWipVpWv5QbQWc1FqSiPClnmvvJItJke79KzpmCWQq71BR2QU+fIumZiIkwk NQbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DNxyhq7WYEH0U4TtHXig9vqQWs7OAdf1s4tgVO034Ek=; b=jPhUO4OxNTclmuJ2NpRZ+uYb2dKIRpMBv6ZasQQuigLiVKZUd3Tnjv729iwhnzJv3s urpN5ndYtf43W8C2udL50mF7GSwOV4CIZoetGJxo+AWWQ7/WHatQt5dLVRBdU6UmMpPk TJjyR5lI/2zBdqrsp+GnWLUFMFFItHMogurhDCt+loab+jLKi0pDpOdaTQY0xQmLQumD PJR/svzXi1QOlvOQ8I15P+k2e9XKRJ+D3Ki64DGr7Jh7wvUk4+mvVkxVbZ14eLlh9sXX VNM2yo+dJAdVFV9M48e92bON0OQnNhtqzKZRDlz6rhmw/WNSINsZmlj2Sr9WOVp0Y/Vd xQgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8+dIitQ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si16333456ejt.19.2021.05.11.01.51.20; Tue, 11 May 2021 01:51:20 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8+dIitQ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbhEKIwY (ORCPT + 7 others); Tue, 11 May 2021 04:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbhEKIwX (ORCPT ); Tue, 11 May 2021 04:52:23 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A11CC06175F for ; Tue, 11 May 2021 01:51:16 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id n84so10673794wma.0 for ; Tue, 11 May 2021 01:51:16 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=DNxyhq7WYEH0U4TtHXig9vqQWs7OAdf1s4tgVO034Ek=; b=L8+dIitQEA0nzDAZFmhniL7JR6aAq0+ZtDg4oufaegP5/aeUz4SlQ9IFT7zS8pOosF f4KtR1KmTFnOGtGQxMNuBbphZMWmwYdAAxovPRGDZcczc9/LSUy5C24RmtmXRhH0SfSM YsvxxSxpX3xMl5PXr/sfuI6hTarFXzJHp5FE6O/bHqy4A6LlYsygv9PjGSaBPrMNabuA UnW1cZmECkiH3nGNK0/GIf2q7qOceI6WUNi8RuvQDH2hQC1I/mNItxhmcuUG00zPPUjx TM6nDyp+FMuKAvOkwNHvGbY14UG/UmBR0buL9GMLRwsCfF7R0HyGRhILcSxPhpIBvt7h XMFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DNxyhq7WYEH0U4TtHXig9vqQWs7OAdf1s4tgVO034Ek=; b=XHhx/I9R/GCZQ6M9JJUpK0upEQC+PzssC9Ke9IWBQBIEGyK+YD/3kX+0+00NFlb5VM d/4jXfZSWI6njAswp0CUyp0ApRUUYrcpxT9+PhTSfStpMZX0mwstD00NZB3OpozqkHI8 QF8AQgdpOHKdZn23M+ICFFhGoXOND38aXxtf++GDW9uQO+r2+38i+jF2BVC1VoBLkaQH Ocjdq4kAu4UXKl87IayOdjFILfCn0TXHuXZa0UvlM4e9TqRbJ9vGUVaFoZ+ikunVTmGR TOHFaKw4PiblC8jeACVj/C4LBKsnuatdyzjZSlx2Q6C2xH5yrSgq83jKeQQlNkYmaMSG Xh6Q== X-Gm-Message-State: AOAM533RGUE6fNGooaoB54wmgjtKnT3Y9nDL4Q+g/YlatGR2vJwFir8w jfUZh5yn3BuIRvwI9GNfGnBWXA== X-Received: by 2002:a1c:14c:: with SMTP id 73mr4257589wmb.152.1620723074850; Tue, 11 May 2021 01:51:14 -0700 (PDT) Received: from arch-thunder.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id j7sm23042980wmi.21.2021.05.11.01.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 01:51:14 -0700 (PDT) From: Rui Miguel Silva To: Greg Kroah-Hartman , Sebastian Siewior , Laurent Pinchart , Rob Herring Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v2 4/9] usb: isp1760: remove platform data struct and code Date: Tue, 11 May 2021 09:50:56 +0100 Message-Id: <20210511085101.2081399-5-rui.silva@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210511085101.2081399-1-rui.silva@linaro.org> References: <20210511085101.2081399-1-rui.silva@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Since the removal of the Blackfin port with: commit 4ba66a976072 ("arch: remove blackfin port") No one is using or referencing this header and platform data struct. Remove them. Signed-off-by: Rui Miguel Silva --- drivers/usb/isp1760/isp1760-if.c | 20 +++----------------- include/linux/usb/isp1760.h | 19 ------------------- 2 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 include/linux/usb/isp1760.h -- 2.31.1 diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index abfba9f5ec23..fb6701608cd8 100644 --- a/drivers/usb/isp1760/isp1760-if.c +++ b/drivers/usb/isp1760/isp1760-if.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include "isp1760-core.h" @@ -225,22 +224,9 @@ static int isp1760_plat_probe(struct platform_device *pdev) if (of_property_read_bool(dp, "dreq-polarity")) devflags |= ISP1760_FLAG_DREQ_POL_HIGH; - } else if (dev_get_platdata(&pdev->dev)) { - struct isp1760_platform_data *pdata = - dev_get_platdata(&pdev->dev); - - if (pdata->is_isp1761) - devflags |= ISP1760_FLAG_ISP1761; - if (pdata->bus_width_16) - devflags |= ISP1760_FLAG_BUS_WIDTH_16; - if (pdata->port1_otg) - devflags |= ISP1760_FLAG_OTG_EN; - if (pdata->analog_oc) - devflags |= ISP1760_FLAG_ANALOG_OC; - if (pdata->dack_polarity_high) - devflags |= ISP1760_FLAG_DACK_POL_HIGH; - if (pdata->dreq_polarity_high) - devflags |= ISP1760_FLAG_DREQ_POL_HIGH; + } else { + pr_err("isp1760: no platform data\n"); + return -ENXIO; } ret = isp1760_register(mem_res, irq_res->start, irqflags, &pdev->dev, diff --git a/include/linux/usb/isp1760.h b/include/linux/usb/isp1760.h deleted file mode 100644 index b75ded28db81..000000000000 --- a/include/linux/usb/isp1760.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * board initialization should put one of these into dev->platform_data - * and place the isp1760 onto platform_bus named "isp1760-hcd". - */ - -#ifndef __LINUX_USB_ISP1760_H -#define __LINUX_USB_ISP1760_H - -struct isp1760_platform_data { - unsigned is_isp1761:1; /* Chip is ISP1761 */ - unsigned bus_width_16:1; /* 16/32-bit data bus width */ - unsigned port1_otg:1; /* Port 1 supports OTG */ - unsigned analog_oc:1; /* Analog overcurrent */ - unsigned dack_polarity_high:1; /* DACK active high */ - unsigned dreq_polarity_high:1; /* DREQ active high */ -}; - -#endif /* __LINUX_USB_ISP1760_H */