From patchwork Wed Mar 8 15:31:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 66306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp405920wrd; Wed, 8 Mar 2023 07:39:20 -0800 (PST) X-Google-Smtp-Source: AK7set8ST7sEW48SwRMPdAowT4uXMaXkbXdJGflfyEPr7dzb9iuLciLCHq9vvB/WK6vvUm+Gb+GJ X-Received: by 2002:a17:902:c103:b0:19e:7611:7162 with SMTP id 3-20020a170902c10300b0019e76117162mr16119483pli.16.1678289960680; Wed, 08 Mar 2023 07:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678289960; cv=none; d=google.com; s=arc-20160816; b=cV8KJwAAu25D4trcOVBeGzgZymwPmTz0Y1DzAdsrHdTvlJ/942EjItDcz79L4KvK4G H9z7p8w4EOtWEltk276kKMS2onnSFeFJoqG4fpNWOaqKps8xk0F1ZXUCNpuq5Hm6DxvJ l86UVL3KKolvP54kdSKoxtk33AWoD4w7Q5Lumsf4K8qxe5FIYZ4fvfMJ/SnagKVMZH4d gLPybfnKeGI64YpfYd7W7FsE99y9ze43E5A5uSdylyvUTgksJiepnIQ10h9/gsRWnc3U 8/n9qcWzooAhdQw5wZOl7JnC04o0EcbGG+y+mdPIokNgFCwflGTcnPqsGItBapQhrp0y 7Y2w== 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=6Y6+DcGF5JnGzoC8RTbBsZslgXp5YAzj2GBjOQi6pCc=; b=tTTyDKdCiEG/kgVF7vaTCMUJLUzESk+JhC+6rfn+3XSI3fxPHjonntgrbovIlrCxWN Z8wBCd5sPPazTTWh8HbR0lRTgOvJwMQf87QSyjl0OBy0B0ANLYbcqXkiYh+9fpAKvsaF Ctor/AnFEknTA2x6m/LXNXBfp3jtK5uxCqhCnpHQRIcDmVZUiroqkCG/gsUivb5S7r4s 2upImHNUBo8g4/3es/wwKSXrokUGY68r9ss9E6nrTsTuqAvJ8vtePmFbxXGg6ppIglS7 6nn7x/nYbQYdYjwh8Q6kZfD+WcYkR6vxBExF8cQzQ0j0kPyIAOZBr2hGHb/WvoLnkegi mF7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RXY03Pkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170902d4c900b0019e9c8e51f4si15143832plg.165.2023.03.08.07.39.01; Wed, 08 Mar 2023 07:39:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RXY03Pkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232236AbjCHPcl (ORCPT + 99 others); Wed, 8 Mar 2023 10:32:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbjCHPcX (ORCPT ); Wed, 8 Mar 2023 10:32:23 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46E34D6EB5; Wed, 8 Mar 2023 07:32:17 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 80F5CFF813; Wed, 8 Mar 2023 15:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678289535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Y6+DcGF5JnGzoC8RTbBsZslgXp5YAzj2GBjOQi6pCc=; b=RXY03PkjeFHM2NDqV9I7fCm31fYfj/3+bXxGfa/4clZ/wfHidpfI/nwBN2YWx+ylk6/zXA PDgL+4a1PI/kG2LVNBlVgft/lKsloZGijKFh8pceDwKduQC/pd0kiGqrr+v5WLamrtG4+s 5OYlbM2RS/4m0QFxsOxUkR9swEVIK9myFDD28XRKAU0nP7tRv9w8JxPNPVp553eDO31vHl 1YwkOClnbqPdDK45y08YnTMoWRVmKKh6S8XwfIDHW1lk8KvFkcOHwthFmn4yzJ0WBwbDup GWF510OhB9Sxpae2q8u8cjgPZ1l0vZqprZsXyaQ74MhNwGUMndmiYIHd5Qf8hw== From: Miquel Raynal To: Srinivas Kandagatla , Cc: Greg Kroah-Hartman , Michael Walle , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Robert Marko , Luka Perkov , Thomas Petazzoni , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, Miquel Raynal , Heikki Krogerus , Rob Herring Subject: [PATCH v3 06/20] usb: ulpi: Use of_request_module() Date: Wed, 8 Mar 2023 16:31:46 +0100 Message-Id: <20230308153200.682248-7-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230308153200.682248-1-miquel.raynal@bootlin.com> References: <20230308153200.682248-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759814574012260761?= X-GMAIL-MSGID: =?utf-8?q?1759814574012260761?= There is a new helper supposed to replace of_device_request_module(), called of_request_module(). They are both strictly equivalent, besides the fact the latter receives a "struct device_node" directly. Use it. Cc: Heikki Krogerus Cc: Greg Kroah-Hartman Signed-off-by: Miquel Raynal Acked-by: Rob Herring Acked-by: Heikki Krogerus --- drivers/usb/common/ulpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/common/ulpi.c b/drivers/usb/common/ulpi.c index a98b2108376a..6977cf380838 100644 --- a/drivers/usb/common/ulpi.c +++ b/drivers/usb/common/ulpi.c @@ -229,7 +229,7 @@ static int ulpi_read_id(struct ulpi *ulpi) request_module("ulpi:v%04xp%04x", ulpi->id.vendor, ulpi->id.product); return 0; err: - of_device_request_module(&ulpi->dev); + of_request_module(ulpi->dev.of_node); return 0; }