Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp231782lqj; Wed, 10 Apr 2024 08:55:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUy8rJAUwXWj47GlqxlXWEvRKPuz+0AEM3eSo4Nu3AeHdefq0MiOeY1XsndivfzbXsd3M1rt5sAqR+KTyNoiJKmTQszRd6g4VSJYncojg== X-Google-Smtp-Source: AGHT+IGBZe6yh2Y4umuOG9XIlp3R7MGMp3T8zfLdutfiwbbIe9YcjQye4/vmG9Mn4a2CQYSkMCLN X-Received: by 2002:a05:6a21:3993:b0:1a9:3e65:3488 with SMTP id ad19-20020a056a21399300b001a93e653488mr4022752pzc.25.1712764504420; Wed, 10 Apr 2024 08:55:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712764504; cv=pass; d=google.com; s=arc-20160816; b=Q5e5YOWTcQhSId5d7K5zR+xprzBNHQkKm6mPTq9XDsB1m9uq02OI8jjEtJBJTabsf0 dakyy94elWQlYBwjcoT0E5nFF1czGQ/5AnXqJPDR6+QAGrYLsdoGEK6hXTqyHUap0kCj 0Wjy7e32pXMTzwcd2GThzibt4wgHQOnfiu2Glp29pzW9FrE1BQvLeuALj5be4ZusCAUl W7PpMyElSiT3JEydW/BC9ysgj1wNDHWMH/jfT/RFOkVSp0TpIzjoD23oPm0mPrd5WPlP F5lH3YczTUTaia4yjsSD6QIlMg1ty+n/CwC+bCYgt0+KWqfEYKf9U066fb2GAq1LH8Mf tOCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=/u3RFR6tD070XSpzZqvJ8NdQaVBu5mPGu6fJhGYJCP4=; fh=mrvWycGbO6P0vi8N6B+bmG8N1xntjJQFCF4k4g45tgA=; b=vIb6knUuXnYzy7Dc4DBaRlWlBjwHpHqoCoH9CvPmzyFNeWHN5D7M8xym9uPW7vXLvq ZzmD18ZIijHo9NFw9k/F2WpwCDlm7/AkbLqH3MdnLgwNspREA5q59g7Hh7sr8asidRW5 5geziBk+2LgiA3k8GgqjZjbWSJvp66s2GvKXDUPbvETKq0KmA2EDcTUMRhKF2a1fPdfS hxqrD/QpGbVk5fePJr4I3OpOqxWoBqfN276RGb7jzIDsHIuHc2UvZFusXlgAGsCt2OkZ mNGmutrR6y6cyfJGa6ZEkK2/M4dxIj8G6CwVUjp5vF4eoKA2a9/HeLsKvYlMDof/WyGg zjSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f6ifsRoi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138924-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ei26-20020a056a0080da00b006e718338847si10835637pfb.385.2024.04.10.08.55.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:55:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138924-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f6ifsRoi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138924-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 196EF28E329 for ; Wed, 10 Apr 2024 15:55:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89678174ECE; Wed, 10 Apr 2024 15:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f6ifsRoi" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 985C216F294; Wed, 10 Apr 2024 15:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764441; cv=none; b=p27HLb8eVDRrx1UJGkhAk+U8aJqF0onilg83l36ON+7chrGgQNVB6wW35lnMc47AeYQja9UVJLB4tdByb796LiwePoXApPEjPcBb67wlv+Gqdo5sqpvq8lqGv2CxiqL64wJXOUcak4DGzAZoFpMUiUDSz8x2VdnsShnWqysfHbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764441; c=relaxed/simple; bh=ctRr+IlVWcfFmfsjrpW+tUnJ9yE0+o172fyr+p/k0XQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sK78kpthMjOHoOvfH54m91X5F/MR6VD6V6eUgTQwIrXv+J+sOVMup5BxM48b/s6C5HKT//RBm4GUTRJbIyam1Qk5RqTQkdV01nJlvIzdh/rcXjljtkS6BRSsW3USvvEGEMTyRAl4doATy+5V7OLEBd1cFm5LG/Gbubsv0Hf5LwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f6ifsRoi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30A03C433C7; Wed, 10 Apr 2024 15:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712764441; bh=ctRr+IlVWcfFmfsjrpW+tUnJ9yE0+o172fyr+p/k0XQ=; h=From:To:Cc:Subject:Date:From; b=f6ifsRoiretJl1hnk7PuD5yEtHGyIBtPVzQZtT26J8HqKfBDH+TJmy6ooCcuNp4++ rP7+asL5C5J3h5WC1sEOzPXQ3DDdTbCqUXIt4sNdALtIS8wffHnZDU80A32tj6OQAR PswUGifLmZndNaGk1w1BiQEbo+TG7b6lRZoEgd26kDnABw5402kIatCJg8CrfOqQMJ V9iQOqBSn6VdrGUDXOxxwhs2VMrh6HRqFi7eAV5GyU1TZrdJiy+FXgJ9jf0GsDOBns LmBt4A2wEHhg3NBj7ocmJHw3s2pbMxUEDNJxwsYigCQy3woBlmKjzl2vn6xUheGRhm PIixNhmU2NVYA== From: Krzysztof Kozlowski To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] clk: qcom: fix module autoloading Date: Wed, 10 Apr 2024 17:53:56 +0200 Message-Id: <20240410155356.224098-1-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Clocks are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/qcom/gcc-msm8917.c | 1 + drivers/clk/qcom/gcc-msm8953.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8917.c b/drivers/clk/qcom/gcc-msm8917.c index f2dd132e2fb1..f2b8729e4198 100644 --- a/drivers/clk/qcom/gcc-msm8917.c +++ b/drivers/clk/qcom/gcc-msm8917.c @@ -3278,6 +3278,7 @@ static const struct of_device_id gcc_msm8917_match_table[] = { { .compatible = "qcom,gcc-qm215", .data = &gcc_qm215_desc }, {}, }; +MODULE_DEVICE_TABLE(of, gcc_msm8917_match_table); static struct platform_driver gcc_msm8917_driver = { .probe = gcc_msm8917_probe, diff --git a/drivers/clk/qcom/gcc-msm8953.c b/drivers/clk/qcom/gcc-msm8953.c index 68359534ff25..7563bff58118 100644 --- a/drivers/clk/qcom/gcc-msm8953.c +++ b/drivers/clk/qcom/gcc-msm8953.c @@ -4227,6 +4227,7 @@ static const struct of_device_id gcc_msm8953_match_table[] = { { .compatible = "qcom,gcc-msm8953" }, {}, }; +MODULE_DEVICE_TABLE(of, gcc_msm8953_match_table); static struct platform_driver gcc_msm8953_driver = { .probe = gcc_msm8953_probe, -- 2.34.1