Message ID | 202211171524116446204@zte.com.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp260299wrr; Wed, 16 Nov 2022 23:31:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wQi4wqgScFzt/B3ZasGDk2hwFPy6Sbr4NgBlgG9t/9jsJzTbCNJcCe4rpdJqXzo3DeHPy X-Received: by 2002:a05:6402:2887:b0:460:f0c0:f9c8 with SMTP id eg7-20020a056402288700b00460f0c0f9c8mr1088466edb.181.1668670263921; Wed, 16 Nov 2022 23:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668670263; cv=none; d=google.com; s=arc-20160816; b=VSJNjCkNw0YJ7Nm6bczddtzANUiVrPTeZAbbnSftNlbAsLZYhvkXveut4i7+yTCGvU C7UXgek4qW3IUpEnrpP1oM/+8bFkhVnjKv1yJELXTukUliaCt+4Y8IQJkATzLBhthL3U /vFdUWAOITqWMYoBWW3VlZh7Q1EOnLCGhqfKXfJYbFHtg5DJYbQ+fVps7U0MX+y2e7q2 Ba5vDsKhdyvcZsTjvI5vgQsdjulXbPiqQqzA9e4K2258a0vLioLNvKF0ezczyyIkFK7J Bhvm2kb3K65Xd7xnSlj+4pv3EkyOE+AzIKZxRN/zdjG+bs2ZD5icLaaqDV53VabdV6ov LbNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=hon0aq+x9W9vTgnSdw4Gxn1G1/IP6782knstDDui190=; b=AzA5MoU4Fe1dfGKeuJQX0jBmb/H3VdTRvYyzKuuEVQQhZ8iu9yyIhw8la5ISOoeO1L YF2E4jLs28BBsKt+BiCswC5bS+Tcl2ClPhtBOfpPKvi2LRHF5t081ICXm98oq7AAjUCX jcT3u5s6N7eXNvghWkUZR9B31otalG7JYLLKZktdmDVBPmklNrSJBXAIghX1j52U4FAi 8/czIchctjovAW3eaoLNSQ7Mgv256ARUiFIQwBO1wFxOjeC2aa6bVy6Ove256KoquXyV Qv5z7r4WALG0I9CS6ldslRPHB/j2AOCUwD3n48xoT72End6E7u8dj+y3BoTZD6jZqu3F sY+g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a05640235c800b00461d60a86casi373118edc.135.2022.11.16.23.30.40; Wed, 16 Nov 2022 23:31:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234705AbiKQHYX (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Thu, 17 Nov 2022 02:24:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbiKQHYV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 02:24:21 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7833B28E1E for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 23:24:20 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4NCWcy6Fz6z4y0vK; Thu, 17 Nov 2022 15:24:18 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl2.zte.com.cn with SMTP id 2AH7O9Qq090542; Thu, 17 Nov 2022 15:24:09 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp01[null]) by mapi (Zmail) with MAPI id mid31; Thu, 17 Nov 2022 15:24:11 +0800 (CST) Date: Thu, 17 Nov 2022 15:24:11 +0800 (CST) X-Zmail-TransId: 2af96375e19b4b0447f0 X-Mailer: Zmail v1.0 Message-ID: <202211171524116446204@zte.com.cn> Mime-Version: 1.0 From: <ye.xingchen@zte.com.cn> To: <ulf.hansson@linaro.org> Cc: <linux-mmc@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: =?utf-8?q?=5BPATCH_linux-next=5D_mmc=3A_pwrseq=3A_Use_device=5Fmatc?= =?utf-8?q?h=5Fof=5Fnode=28=29?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2AH7O9Qq090542 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.13.novalocal with ID 6375E1A2.000 by FangMail milter! X-FangMail-Envelope: 1668669858/4NCWcy6Fz6z4y0vK/6375E1A2.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/<ye.xingchen@zte.com.cn> X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6375E1A2.000/4NCWcy6Fz6z4y0vK X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749727590728170823?= X-GMAIL-MSGID: =?utf-8?q?1749727590728170823?= |
Series |
[linux-next] mmc: pwrseq: Use device_match_of_node()
|
|
Commit Message
ye.xingchen@zte.com.cn
Nov. 17, 2022, 7:24 a.m. UTC
From: ye xingchen <ye.xingchen@zte.com.cn> Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> --- drivers/mmc/core/pwrseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 17 Nov 2022 at 08:24, <ye.xingchen@zte.com.cn> wrote: > > From: ye xingchen <ye.xingchen@zte.com.cn> > > Replace the open-code with device_match_of_node(). > > Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/core/pwrseq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/core/pwrseq.c b/drivers/mmc/core/pwrseq.c > index ef675f364bf0..2374669b588a 100644 > --- a/drivers/mmc/core/pwrseq.c > +++ b/drivers/mmc/core/pwrseq.c > @@ -29,7 +29,7 @@ int mmc_pwrseq_alloc(struct mmc_host *host) > > mutex_lock(&pwrseq_list_mutex); > list_for_each_entry(p, &pwrseq_list, pwrseq_node) { > - if (p->dev->of_node == np) { > + if (device_match_of_node(p->dev, np)) { > if (!try_module_get(p->owner)) > dev_err(host->parent, > "increasing module refcount failed\n"); > -- > 2.25.1
diff --git a/drivers/mmc/core/pwrseq.c b/drivers/mmc/core/pwrseq.c index ef675f364bf0..2374669b588a 100644 --- a/drivers/mmc/core/pwrseq.c +++ b/drivers/mmc/core/pwrseq.c @@ -29,7 +29,7 @@ int mmc_pwrseq_alloc(struct mmc_host *host) mutex_lock(&pwrseq_list_mutex); list_for_each_entry(p, &pwrseq_list, pwrseq_node) { - if (p->dev->of_node == np) { + if (device_match_of_node(p->dev, np)) { if (!try_module_get(p->owner)) dev_err(host->parent, "increasing module refcount failed\n");