From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1837F2420D; Thu, 18 Jan 2024 11:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705575638; cv=none; b=qGahEAJhPcAufU6CctJfJGMVScoDl1nIchdSFYj3WWpzpt7BwkA6sFyiOIHsgW+krkGxljVQlrbXhXbv9b6LhccBg9mbZqRNyyHd5Fqiwggd7ZmDssV9iDw3akRMzXGbc3jQ9rO7jZe30jxlLh251GnFbhJwxjehM+xd7REzfKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705575638; c=relaxed/simple; bh=jgZMsyHUgRjfIBeelscFeItDAnF516dxC9JqtE7rCX0=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:User-Agent:X-stable: X-Patchwork-Hint:MIME-Version:Content-Transfer-Encoding; b=ajqFKgwn4tZ/IYQpXCANNfJAGcoisasSz6IDIwhmJJa1ho6E0m8CuIGG/nl69CQj8UEdxq75bXYmNUtR9dhutlJmyp1ACpxhytVJI9BdCxXzeeE8JyjieQQoEDC7cqr/lB3i1dy3SSqm7/7W8o1Mq4yVLJjVMzw3yeimU2+rYIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aKFEnO3k; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aKFEnO3k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CFA6C433F1; Thu, 18 Jan 2024 11:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705575637; bh=jgZMsyHUgRjfIBeelscFeItDAnF516dxC9JqtE7rCX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aKFEnO3kRY3L5JcfYn0fdGdnMbnrcOR8Pm0riJjErjOOlymw+SJLgIYchtsvhtzXc 3c6yGsYkO42/Il2PVDTUIqg0pQ5cHITWc0jU0QzmYmGnSOTPgr7cbws5AUrOjysfDI +2cCi7tZ9We+T4yvx5YDNlBnHBQrOQgIKW7ukMcg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Yanteng Si , Conor Dooley , Jiaxun Yang , "David S. Miller" , Sasha Levin Subject: [PATCH 6.1 052/100] stmmac: dwmac-loongson: drop useless check for compatible fallback Date: Thu, 18 Jan 2024 11:49:00 +0100 Message-ID: <20240118104313.172390635@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240118104310.892180084@linuxfoundation.org> References: <20240118104310.892180084@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski [ Upstream commit 31fea092c6f9f8fb2c40a08137907f5fbeae55dd ] Device binds to proper PCI ID (LOONGSON, 0x7a03), already listed in DTS, so checking for some other compatible does not make sense. It cannot be bound to unsupported platform. Drop useless, incorrect (space in between) and undocumented compatible. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Yanteng Si Reviewed-by: Conor Dooley Acked-by: Jiaxun Yang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c index 49c7aa86faaa..e129ee1020f0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c @@ -59,11 +59,6 @@ static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id return -ENODEV; } - if (!of_device_is_compatible(np, "loongson, pci-gmac")) { - pr_info("dwmac_loongson_pci: Incompatible OF node\n"); - return -ENODEV; - } - plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); if (!plat) return -ENOMEM; -- 2.43.0