From patchwork Wed Mar 8 15:31:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 66296 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp403547wrd; Wed, 8 Mar 2023 07:34:47 -0800 (PST) X-Google-Smtp-Source: AK7set+1muxyOOz9GG8UccxtyOXt3QdPRfWUoJsQm6SoUg+N+4FhG6eZRFpLg/HEe//jgwbsQ797 X-Received: by 2002:a17:902:da8d:b0:19e:9812:ad11 with SMTP id j13-20020a170902da8d00b0019e9812ad11mr18062570plx.23.1678289687363; Wed, 08 Mar 2023 07:34:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678289687; cv=none; d=google.com; s=arc-20160816; b=ww+61YVEUWcb3yvM38+zE3UbPlYtQIr99QwC9AEXCJGPTMkwZSDJ+dqMjLVCXPNdLZ viWtTdeNkCVfpujZNQKcNOuJ5+DwPCORcIABm7RwHF4Bnj551Cf0CGCTcHr+dCL7UQQH NBiMIxFGO+q9loFNgV01WD0DZh7u7pLU98OaxhuwAOWTgMDFc5gHYoiJ2BScdVITvGFR /oRycJYedu4ulBf/93+kRzZGIYieFcF9GkI0l0AiQLKIOTPjlEAveO2MyJK4umYFAKMJ wV/nfGNdK95dWw1mUO4nsBwmMmLPxacyLm52hXKzgNyG5lXJJU1AVuZ3yTrCh+8TAUK6 KkdQ== 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=+Fa7z9mAzOMi6AkU7brGc+2TjyQ76RAJaVPkouit7mo=; b=t0TA9GIaX+Numv9+iwiGzEVh3kKlS6/n73jAEPnzD68+e2cVTJEni/uaF5qjQuDEP2 WXS4EB/rDrbObxvOxBs6mGE2ulQGEIsUn9gOFSWq5rMoQWgNB9NRDs3mRpNX19UvWa0N Z9TNBuqjqgzrIJ89TXPJU6V+0m5av1zh1j6ww6dxUAyDEuoSorl9l/Ub7sstR7R/pnPw opZBooJclml++wBGxEVapuWjfhBFuFDsVNkFF421aXY62H3aZDNd6z228q7uU/Oz7rAs ccp1q7Ye6AOXWKzSciqQuvNRPkD0jNXn7Lpv29JAmDJg+j3xL03Do92eK+dSGclZjEmc 6Evw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="P/UTtYGy"; 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 iw4-20020a170903044400b0019a70c85427si14222803plb.275.2023.03.08.07.34.31; Wed, 08 Mar 2023 07:34:47 -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="P/UTtYGy"; 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 S230332AbjCHPcx (ORCPT + 99 others); Wed, 8 Mar 2023 10:32:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbjCHPcZ (ORCPT ); Wed, 8 Mar 2023 10:32:25 -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 0242FD90C3; Wed, 8 Mar 2023 07:32:18 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 0361FFF807; Wed, 8 Mar 2023 15:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678289537; 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=+Fa7z9mAzOMi6AkU7brGc+2TjyQ76RAJaVPkouit7mo=; b=P/UTtYGyVisjLPnxSNWkC+juOYc1uO12Iz/PRd8UahgGDTmZs7aX0/5GtH3tECGJq52XN5 EkamMgQcFrMmEeIbwRiAY/HNktUOduyGl+E5ULbpAReCdxKni8LXR/+/bqUQfYrzZxCoCN Z43Jx66ttDQIpSqYl+CRwbhR7kGmimm/QP4/AUaCnfgHfTzzIG+F7+OxzsmE6ZZ/sXqMv7 mX3TjttNr34EF9n+USydV6B8d8Q5zzxXg70R9bIy7YdVysHuOLPCoyrA5mkbnz9dX58cGG yA4QU7FDePP6vDQK2Wxpj/E02L7xseUPAE+qTmrI+aMEYjV2VkgYsSRuKCJGPQ== 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 , Rob Herring Subject: [PATCH v3 07/20] of: device: Kill of_device_request_module() Date: Wed, 8 Mar 2023 16:31:47 +0100 Message-Id: <20230308153200.682248-8-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?1759814287371590845?= X-GMAIL-MSGID: =?utf-8?q?1759814287371590845?= 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 874a2e1f6308..0f00f1b80708 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 f4b57614979d..ce20d8b00b3e 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(const 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(const struct device *dev, struct kobj_uevent_env *env) {