From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 C7E62212548; Mon, 4 May 2026 07:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777878065; cv=none; b=IG5WjmHSI24Ej8Qzesgmn3qHb+VgswxomN6d3JVTKd9Cpz0cXWKhtiebqDsHkXovwOPwWaH2UyQyo8IFGAYW3qFqxSPUcgJCMCuY90SPaua6d3W7SxtddR5pGEeG1t+aMd/KAGNJ3h/VeWTa75YV+dykokvRUzTUZVw66zRmK/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777878065; c=relaxed/simple; bh=harktBiFvTyW0eTdv1xyo3FFw2GjXWrmry91+uh1PuI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a3pCOyFedebXfBL5OLTotOcGZgvFZnue7khYG+dD5DV6htkWNpIvJ8io/v3zFGHb/IpViAdECWWbyEbyt6UPwJdBXNUtTor4M8tfi0QQx5btdIFb4Wc/YczjUL3i6lC2iV0CyRqRBtoBTSDKAx1qoAsAPfVVfhjphKC8EPjXrvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=hmo6VIYL; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hmo6VIYL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777878063; x=1809414063; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=harktBiFvTyW0eTdv1xyo3FFw2GjXWrmry91+uh1PuI=; b=hmo6VIYLI2Te1GnohVafxlYjeu1jGae4857SlXeLACy/RGeq4KW11j23 xyB0Gtm4UdvvkXmtXbQY8Pkpvo2zRP943DS09sp7vpA4Mlrw/jX0Z0poM FA/8YmSMsw2nm2jPPMjI+S+xmv0Q3Dmt0jTnVgadkkV3HnhaGhvzZyBsr IMRhse4lLVUmTRPhR4dP1BFSP0tLop++mEzt0U+1M2xYdt5/RFSZpsLmT jqrp/wEE3AjzF4+x8aRIfwOF67JGyPsxxDpl+qfYOhPlK7Il0ZBkL1P9i SpUmjPHS7jLEUpCBvEam0b8PTAqZRkfN1lOFQRhBP3snYrkYfAJVM/N4P Q==; X-CSE-ConnectionGUID: RC5rnzcfR7iR4Wuw30cmPg== X-CSE-MsgGUID: LHwIj/kxSB2VDwTekPoeow== X-IronPort-AV: E=McAfee;i="6800,10657,11775"; a="82582130" X-IronPort-AV: E=Sophos;i="6.23,215,1770624000"; d="scan'208";a="82582130" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2026 00:01:01 -0700 X-CSE-ConnectionGUID: RfbcWwxES5KS/ONOQj+NLw== X-CSE-MsgGUID: 8uILAxpDToSZGx7mwtktIw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,215,1770624000"; d="scan'208";a="239409101" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa003.jf.intel.com with ESMTP; 04 May 2026 00:00:59 -0700 Received: by black.igk.intel.com (Postfix, from userid 1003) id 3526099; Mon, 04 May 2026 09:00:58 +0200 (CEST) From: Andy Shevchenko To: Peng Fan , linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Josua Mayer , Ulf Hansson , Andy Shevchenko Subject: [PATCH v3 1/4] phy: phy-can-transceiver: use device_get_match_data() Date: Mon, 4 May 2026 08:58:52 +0200 Message-ID: <20260504070054.29508-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260504070054.29508-1-andriy.shevchenko@linux.intel.com> References: <20260504070054.29508-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use the generic firmware node interface for retrieving device match data instead of the OF-specific one. While at it, drop unneeded argument to devm_phy_create() which extracts device node from the given device by default. Reviewed-by: Josua Mayer Signed-off-by: Andy Shevchenko --- drivers/phy/phy-can-transceiver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/phy/phy-can-transceiver.c b/drivers/phy/phy-can-transceiver.c index 2b52e47f247a..80eece74f77d 100644 --- a/drivers/phy/phy-can-transceiver.c +++ b/drivers/phy/phy-can-transceiver.c @@ -5,9 +5,9 @@ * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com * */ -#include #include #include +#include #include #include #include @@ -152,7 +152,6 @@ static int can_transceiver_phy_probe(struct platform_device *pdev) struct can_transceiver_phy *can_transceiver_phy; struct can_transceiver_priv *priv; const struct can_transceiver_data *drvdata; - const struct of_device_id *match; struct phy *phy; struct gpio_desc *silent_gpio; struct gpio_desc *standby_gpio; @@ -161,8 +160,7 @@ static int can_transceiver_phy_probe(struct platform_device *pdev) u32 max_bitrate = 0; int err, i, num_ch = 1; - match = of_match_node(can_transceiver_phy_ids, pdev->dev.of_node); - drvdata = match->data; + drvdata = device_get_match_data(dev); if (drvdata->flags & CAN_TRANSCEIVER_DUAL_CH) num_ch = 2; @@ -187,7 +185,7 @@ static int can_transceiver_phy_probe(struct platform_device *pdev) can_transceiver_phy = &priv->can_transceiver_phy[i]; can_transceiver_phy->priv = priv; - phy = devm_phy_create(dev, dev->of_node, &can_transceiver_phy_ops); + phy = devm_phy_create(dev, NULL, &can_transceiver_phy_ops); if (IS_ERR(phy)) { dev_err(dev, "failed to create can transceiver phy\n"); return PTR_ERR(phy); -- 2.50.1