From patchwork Tue Mar 7 16:53:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 65720 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2542545wrd; Tue, 7 Mar 2023 09:01:50 -0800 (PST) X-Google-Smtp-Source: AK7set+B6t0BN9HrxAZb0tTTJ780wItmqsn9xc4xJLvmuoOxZEp/sVIApbeTVYfV8l6uApwXkBUS X-Received: by 2002:a17:907:7604:b0:8de:e66a:ece9 with SMTP id jx4-20020a170907760400b008dee66aece9mr12071972ejc.24.1678208510312; Tue, 07 Mar 2023 09:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678208510; cv=none; d=google.com; s=arc-20160816; b=jZKRrwd+eqD40AWfMOwvuMz1L2j/fNnu1pxlwo034Yf8/SpYLCZavuppsBcrlErqPV aeD1gPFolHOhBkOn0nmF5gEiF7yxQ/PMrkEZQuxo113wSrChIPLkbd/YyuUyLXnJwwR3 LAIDnreWf3kXo8eEzTlMepmaZhWakhJcyQo8KJWJknLvjatAKSdJZMZ+4UUMXIQxwO1E 93PHQm2qEyxmnMBae2NN1hYyz/91uOqE7i4zwp4ZnyF5jub/RZZETWZXMVr7jmpr0vi+ JlmzfAOpb49wluFSwjvD7/C/VV2s1ngMgTudB1MYodREKFGnIL8O7QK7GW0ygr4Qpdvn aKUw== 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=GmTz13SaF5QA5tI3kF6niArbxNcTvsMZc/5y93yP4pU=; b=zZEJtkx7KujaXO+H1dwXNCq6dIwRkEYWG0CG8fKUpls6jlVEvHfLbDy0n+94M6+7rI /E0q6kfm7Pk7SaSQa76+shB6UteMgA9O+Wj82WTG9aARQxEmi6ZnbSs1XPdfDeaLGN6h NvAcjqTTFBiMGgU9gcVkEXedadMnhxLIQs7HcU3fsAGkxDS6LfZFw597zqbFXAaZ8kNv ug2uaho7oFfHo1YquNJNbwsTGiPCEtKXJxOk8zMuBrUudazmcXfSH4UoFzingsN8u784 KnMBaISDajPX+WuXSN5+JmhYx/wwucz7WXdY5lerWfMnOFUMp01khkjdF8M6DLV/nIyM au0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=guy91AfP; 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 r18-20020a170906551200b008b7eed5fa18si13022343ejp.986.2023.03.07.09.01.16; Tue, 07 Mar 2023 09:01:50 -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=guy91AfP; 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 S229835AbjCGQ66 (ORCPT + 99 others); Tue, 7 Mar 2023 11:58:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbjCGQ6F (ORCPT ); Tue, 7 Mar 2023 11:58:05 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E002F900A5; Tue, 7 Mar 2023 08:54:28 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 2BD08C000F; Tue, 7 Mar 2023 16:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678208067; 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=GmTz13SaF5QA5tI3kF6niArbxNcTvsMZc/5y93yP4pU=; b=guy91AfPPHcEdsQm5speMhqIIjA3cVdkn/sunDG4mZh70pke94GGIcreq5jYCcNQMuog7v ymVqv2XSgLeE2e3sCoohDJ6fJASQA0i9GYbU2r4lbR6X0/4SoSpzBhSh0iJUhv7c/pMxpW eblBWFo2qHb9F3ioEDoAgt902vlPXIWwc37cA7i4L89Cj/PFR4laicB2qyih2X3ZK1YUC+ BMyPH2+HIZSTZBPkAm1S4J5rk0rEOp5nDiVZGgeQTOUOHyVA7ov3lMcKPXsFPQi8+OGBQZ Yy/tSl0gVRzhpa/ibBPHvvPKWl23k3THWbx5h3YyLDg4FwWEmdDnt90r+GdSaA== 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 Subject: [PATCH v2 06/21] usb: ulpi: Use of_request_module() Date: Tue, 7 Mar 2023 17:53:44 +0100 Message-Id: <20230307165359.225361-7-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307165359.225361-1-miquel.raynal@bootlin.com> References: <20230307165359.225361-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?1759729166629106410?= X-GMAIL-MSGID: =?utf-8?q?1759729166629106410?= 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 --- 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 60e8174686a1..6a2b69642e83 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; }