From patchwork Fri Aug 21 03:54:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 248079 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp210ils; Thu, 20 Aug 2020 20:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgypU8/ywRFRkcmRgFV5VS5nq/eqVHYSEyF1HlxTYJASg6VG2AMj9vx8Ky2wlfQrSLshmA X-Received: by 2002:aa7:d304:: with SMTP id p4mr818938edq.267.1597982212697; Thu, 20 Aug 2020 20:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597982212; cv=none; d=google.com; s=arc-20160816; b=eOpGBwcJjbJpqYPt+fODyMtUzRM9vGDuMMIJ+7/CRR17LjVLxnXffcQe2BJShm869k b7/wH58sGGkUl1zopasIl07RjSMHYLV1U0SZPYDh0Aq/YLZloQgQSO+cu6wZCCZMhCpr 7iROkR76K081+rQmcBn0jaVHhsuGpSubExPUxt5VxuE5L0uwlRh9EzqBEmK64+34kSYm eGiIiLEdajJ8DmvUuzeuLXW3u7o644FDhV3nTzH0XHtpMVdM97gBISuGG7S/O8EJ58QT IgQEhBqUvVzp/3cV/9v0CPImvHJxeAgb5oMmfqX3nXKMXTG4mcasQc1SvX7a55GFOqjg SgJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=977wihraQvLF0SPRRQJhF+YrG+p3/qEwPqMrKAY+nbQ=; b=P6UQGbhwcZeXneWKKiWi5YO2dvxBRbumx9gNicu6FetYkM2Yz5J19rUz/3i/u8zbeE hBz8qYKsHEjM9PQwJCFuLaF8+zYHySF/jhPsj3MYfGnmaU/aI9oSC9TQ32HLOFqJNgGM MBXlkkQTSmSiKdJ1ZwgXe+ts8qiwyUUwoQA8sKBBpi6jumVV7VH+2SnKahkPfwcWwdAB 4gX41RocHCI0tAeL3iW7kW+RfyU8RI0P87K0FQwDDoS2eba/ynSqajEgGLOTkXVQ29jR Djmq20B3RJqWlZLDOVGQGmSQDJ5NuOEa9Qyg+3Iqcy5+mYxVTg7YP6obPjNM6CHuy5JT z7tA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v26si360940ejj.351.2020.08.20.20.56.52; Thu, 20 Aug 2020 20:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728073AbgHUD4v (ORCPT + 4 others); Thu, 20 Aug 2020 23:56:51 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37248 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728070AbgHUD4r (ORCPT ); Thu, 20 Aug 2020 23:56:47 -0400 Received: by mail-io1-f67.google.com with SMTP id b16so484841ioj.4; Thu, 20 Aug 2020 20:56:46 -0700 (PDT) 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=977wihraQvLF0SPRRQJhF+YrG+p3/qEwPqMrKAY+nbQ=; b=QP6Ph6SxkKDtZbORRtfLMy3zhPOXoer1TZ4GkXKLxhjDd4oyTP/tBCQUjyG8U033C8 yr6dg5p34tHYR7cGuVa3zNUWDDIFlyM6D7ICccvZelfakNKxMABjpxfFHiescP2hyqz+ Gjx/gKRB2jAPn52dfrAv+QY0qOvGNyTPQIm/lzbdVAQDd20DD4CcDVdfc/gc51R/WfDH 8Sk3QgMxH7btHOlNHM/MF4jaw78uYda9kCIK8ADENjarxiYm+ja83a/fg+ohDWZhUs3O sDnrhJS6Gp7YRMmvFOV4jalcN+irJWmK/9flL+237d1lo/HECj7zhvhzGVmwB7Uyqbx9 1GOg== X-Gm-Message-State: AOAM531CwISCsdsVPdcn+nDEi+q9dY26vHQPkrTTqCvvWtPtpmLxkqD8 tDbQMgNKPOW2xSbXRU9oPA== X-Received: by 2002:a02:29ca:: with SMTP id p193mr859557jap.131.1597982205997; Thu, 20 Aug 2020 20:56:45 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.249]) by smtp.googlemail.com with ESMTPSA id 79sm413923ilc.9.2020.08.20.20.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 20:56:45 -0700 (PDT) From: Rob Herring To: Bjorn Helgaas , Lorenzo Pieralisi Cc: linux-pci@vger.kernel.org, Andy Gross , Binghui Wang , Bjorn Andersson , Dilip Kota , Fabio Estevam , Gustavo Pimentel , Jerome Brunet , Jesper Nilsson , Jingoo Han , Jonathan Chocron , Jonathan Hunter , Kevin Hilman , Kishon Vijay Abraham I , Krzysztof Kozlowski , Kukjin Kim , Kunihiko Hayashi , Lucas Stach , Martin Blumenstingl , Masahiro Yamada , Murali Karicheri , Neil Armstrong , NXP Linux Team , Pengutronix Kernel Team , Pratyush Anand , Richard Zhu , Sascha Hauer , Shawn Guo , Shawn Guo , Stanimir Varbanov , Thierry Reding , Xiaowei Song , Yue Wang , Marc Zyngier , linux-amlogic@lists.infradead.org, linux-arm-kernel@axis.com, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-omap@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 36/40] PCI: dwc/intel-gw: Drop unnecessary checking of DT 'device_type' property Date: Thu, 20 Aug 2020 21:54:16 -0600 Message-Id: <20200821035420.380495-37-robh@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200821035420.380495-1-robh@kernel.org> References: <20200821035420.380495-1-robh@kernel.org> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org A driver doesn't need to check for DT 'device_type' property, so let's remove the check. Cc: Dilip Kota Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Signed-off-by: Rob Herring --- drivers/pci/controller/dwc/pcie-intel-gw.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.25.1 diff --git a/drivers/pci/controller/dwc/pcie-intel-gw.c b/drivers/pci/controller/dwc/pcie-intel-gw.c index d15e49b8df2a..6b102197a1b6 100644 --- a/drivers/pci/controller/dwc/pcie-intel-gw.c +++ b/drivers/pci/controller/dwc/pcie-intel-gw.c @@ -268,12 +268,6 @@ static int intel_pcie_get_resources(struct platform_device *pdev) return ret; } - ret = device_property_match_string(dev, "device_type", "pci"); - if (ret) { - dev_err(dev, "Failed to find pci device type: %d\n", ret); - return ret; - } - ret = device_property_read_u32(dev, "reset-assert-ms", &lpp->rst_intrvl); if (ret)