From patchwork Tue Mar 7 16:53:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 65730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2543203wrd; Tue, 7 Mar 2023 09:02:44 -0800 (PST) X-Google-Smtp-Source: AK7set/rRipZYGvcEK54DX2bqwQENRskv15Moa6ZyHon1ieDKJbf0paukzCnuoAAeEHPA507aJ+q X-Received: by 2002:a50:ef19:0:b0:4d2:785f:d4a9 with SMTP id m25-20020a50ef19000000b004d2785fd4a9mr12064188eds.42.1678208564745; Tue, 07 Mar 2023 09:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678208564; cv=none; d=google.com; s=arc-20160816; b=f/x5tp0zDPR0Dz1eD0MobDvKX7Sugne/BICZx3rKOcr+S/1Zi2usASk9X+XUHLjDfb DI7j3R+7ZFIcqlKAF1DuPXAM86dMzqpM2FisS4IoNijKnCl9bizlBMBYaVV+5FNYzpJU gJ6eG9PgZbFgAA4J9OZPK09/Tf7DuhP9Q3DAjGj5gYs6+rzQZRy4FtPJCHvvC2InFSkj Qu2SIx/Sr2c/XFDOGRqv0uWyaLm03l+Ot+5yav+7Dn1RjpR2SmeWJyiz0+S9uzI2986a V1/Br10ufzMv3Go6STuW+GXKvA1TX/bK2LQ7/6AZvVhWej7+PPkK3/4HQ3ZCynjnzR5g Im8g== 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=CRuE9PZJiPz9C7EOf+r9GXYwrEDm26qK5kWdG2+8fH0=; b=S+Isec0CCH7+BocCXhJ6vQFRuE4SDVyX9sZ25AQM41fHubS8mQfUqn9nSzrm4POead Lv3drDle1SHVU7Zbpg8OotRICbxCTfmZlhkZEkQzHAab2O1HQqNiwiepyt3iUu4Q0xnE Djx06CjGb8ATaK2zUx/CmKNRX1Lk/HxeFjHF2ie2KUkA4vieZfuJyJ41M9qfZK0LXPWd qxU+oUb6Ons6bcsNpsisEmZBjn/rhNylRS2dseYoXuEPjKi63WtnwEi2BBbh8p3jbRN+ KAJMZbnjGnIk33NvPrE9sixF7dL8BhE5IsDhxfOMzDARZqYXUI+0ShTzrTS7mExLf6zi ASng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YKylPxBH; 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 x10-20020a170906710a00b008dcebb5a105si9090950ejj.638.2023.03.07.09.02.19; Tue, 07 Mar 2023 09:02:44 -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=YKylPxBH; 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 S231279AbjCGQ7G (ORCPT + 99 others); Tue, 7 Mar 2023 11:59:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjCGQ6H (ORCPT ); Tue, 7 Mar 2023 11:58:07 -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 7720D90B58; Tue, 7 Mar 2023 08:54:30 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id DD194C0004; Tue, 7 Mar 2023 16:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678208069; 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=CRuE9PZJiPz9C7EOf+r9GXYwrEDm26qK5kWdG2+8fH0=; b=YKylPxBHewvat29H7KiU18pRcwwvmatUyI/Z7li4zy9cZLuQtYNzjt0pIXdK0lTl+nHxyR +HfcYx9t96EZ7tfy9h3/Ygn8SjJMRvHs2NtQPFOho4VVjj5NkqsNpOvbA5dZAwRUGH27C6 NbA+L+4EChs3unJiDxP8keLuA3wkhXVSlR+CspBRQir50Lgpy/qisIripInOdZTo25UgIU xnEDnYuz3XTDEafiDx0OVIWRMPDRUjXtdMv9o19jG2JlgR4GLYlTlJbMlu4OzGDjCmATKM 9jXeZnqLSOEH3Btn/M9RLSvKwm4MPbaGjBpoYLI2B+2Tp8d2ucJJyoHc7SeMKg== 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 Subject: [PATCH v2 07/21] of: device: Kill of_device_request_module() Date: Tue, 7 Mar 2023 17:53:45 +0100 Message-Id: <20230307165359.225361-8-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?1759729223539955359?= X-GMAIL-MSGID: =?utf-8?q?1759729223539955359?= A new helper has been introduced, of_request_module(). Users have been converted, this helper can now be deleted. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- drivers/of/device.c | 9 --------- include/linux/of_device.h | 6 ------ 2 files changed, 15 deletions(-) diff --git a/drivers/of/device.c b/drivers/of/device.c index 4bbb6e6388a9..717392cd416b 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -246,15 +246,6 @@ const void *of_device_get_match_data(const struct device *dev) } EXPORT_SYMBOL(of_device_get_match_data); -int of_device_request_module(struct device *dev) -{ - if (!dev) - return -ENODEV; - - return of_request_module(dev->of_node); -} -EXPORT_SYMBOL_GPL(of_device_request_module); - /** * of_device_modalias - Fill buffer with newline terminated modalias string * @dev: Calling device diff --git a/include/linux/of_device.h b/include/linux/of_device.h index ab7d557d541d..40c6c8d5299e 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -33,7 +33,6 @@ extern void of_device_unregister(struct platform_device *ofdev); extern const void *of_device_get_match_data(const struct device *dev); extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len); -extern int of_device_request_module(struct device *dev); extern void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env); extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env); @@ -78,11 +77,6 @@ static inline int of_device_modalias(struct device *dev, return -ENODEV; } -static inline int of_device_request_module(struct device *dev) -{ - return -ENODEV; -} - static inline int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) {