From patchwork Tue Feb 6 15:25:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771005 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AECD133998 for ; Tue, 6 Feb 2024 15:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233130; cv=none; b=SfrxZxjOOZvvg9wkw8dfJiVgO6MyuxTi9tvhXIP3/BkZd2YGJ8PbE0reSX+caspy3kPpGDe18GJzURCafQKygfbNymScucyZV20/g6xnk7Gr//DH5Hpvhpu5ua9ModI3JNPDrpPGUWya8ct3CHglHWfyMGfdVN4s48AoILGdFok= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233130; c=relaxed/simple; bh=yifx91rkcMfnToWBeQD2KRv1o1OC8UukHlGx6Y78nYI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GyYw0q9z5AWAbyPe/V+f+iBTsl1pW5Zxj3KV5r+274dnTw5hdul26XfSBCl9J2ewkJWdT1goC3UVl5e2wEOPWMKxZTkyMFF5v+xCcbyOJWIMnMyIijxUKjdRLQQ5hnPsWgqj+hvLnhMXpMAjmP02hTSo58cDshYaJbguzfFksTA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=p4DsyKLt; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="p4DsyKLt" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-51160b0ecd9so714352e87.2 for ; Tue, 06 Feb 2024 07:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707233123; x=1707837923; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=D52RHIyTr6s3DO4pboz87MFbLjK48kRtSyUB2vpHi30=; b=p4DsyKLtBbpRn10k+k9TIrUyly3n9I3ndx1EVC74Pwr8RO4NXo/iB15DiQrQK/cG+h ho3TgP4bvUJs3h4CJA3JHDOfJoCT2uhYMLEIMZQHrbLSInVkNi7j6enNeUNOy7srFUi+ QzblBye8XY+dnVuPjf1owd1Jkv1HRVmd9Loi5SQb0TWzqToKqHwQxBdcq4w8+5KFE/8i mBpVcXfD8dfJ/phN86zm6iVZ7CKJkCw0fGLuTGHDkx7GWdC1XkGjs+2MXvNLMpyLBM/X P86Uc0GKpJbvZGP+6/3dCn3TzhpTxqAiG/WDC/rsGTD9WPj9JfXyLNfVVx/5UewMk6/+ IJ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707233123; x=1707837923; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D52RHIyTr6s3DO4pboz87MFbLjK48kRtSyUB2vpHi30=; b=AgKFxxXAqflU43L8vzJskH2ucc7v8/kWmZzuXeIlo6Tn+54Zt2RIizvyDbLnn2KbR+ 0QPJ9zQLsW3zbeiBwhucsKlpPHN550XnJblFBtMpViBLmZT0CYUug8/b19fPNobKJiqv 6cQaM3ylbzgC+vSWrlXdkh0KlGSohutuY0N4o9gXUyOD7YIh26vuKZn3VjkdPBYQk4qK qRrfq2ns5e4Il4rD4FBw5dyx2vBaKR5v9N4Ifcp3DKn7dEJGQ7UvOd5rJ0tkOeC3xNXE r/PWYB3vvEY6aha7HLoBBq7u8GPS+B3wy8mqmyLuyioP93w5qcuV0VIwXe0AeEsqoy15 ZfzA== X-Gm-Message-State: AOJu0Yz7cIYoLSTB0jkSdC7FGYVyHIaTaZSGm0F7NgETQ6iIPLEfJb3s yFY0Dtg4lD3EgbygrPCZ/93JZ4Wqfb+WMJS1PZGktFf7ppY2SC8gTwX0vgCgrzs= X-Google-Smtp-Source: AGHT+IEDvWm4ZLVhZe2DRNQXBdgAKXdN8ZforTZp7ftEcjPd9l4kNLBDfkojQ8F8hO4abqVoi3XNlA== X-Received: by 2002:ac2:5147:0:b0:511:429e:43d4 with SMTP id q7-20020ac25147000000b00511429e43d4mr2364505lfd.11.1707233118261; Tue, 06 Feb 2024 07:25:18 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVqGjOnQAR7j9WA64WG7lE827hNuLJb6pIAsz+JzIMKrhptjgW5RLQ8nJxStOO+m9fJs3Hv2YH+13N6Bzz+uZ8e41jaxSUgfQEtIdNej5VEEbQftzBnB6jKLfSZF3ZV3qOPdQjFSQ1m+UmtWHrNjqmlqXRmTaxaKXKJwshSdcFi2AzkMgfZBgF/IoRhjCZ4O15WxUZ730BfIoBcu8+wrC+OypdyrEgegnr/Sy4mN2lLARTQ5sWcgBvNG4/trS+tq+ffAg== Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u4-20020a056512128400b005114a6cbc57sm264624lfs.46.2024.02.06.07.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:25:17 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 06 Feb 2024 17:25:12 +0200 Subject: [PATCH 1/4] clk: qcom: camcc-*: switch to module_platform_driver Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240206-clk-module-platform-driver-v1-1-db799bd2feeb@linaro.org> References: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> In-Reply-To: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3327; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=yifx91rkcMfnToWBeQD2KRv1o1OC8UukHlGx6Y78nYI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlwk9c1OD89vsKmbyj+9+ZrdgwD3Ew/t4DPwHk6 JGQuTokBYOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcJPXAAKCRCLPIo+Aiko 1bgSB/0T0k77HpSxj+XzNsktYFuMalkvX18RaIptZVZscbAIq0eE1Okn4aHChwsGFTn+1fC97AI gVqBKbYuj50D2bqgfkG/r99nk5sWGfkzRLban/efMZGfP0KpSy+fVVfFCqHL1TZ9tWNBt+R75ev XxCtWYM27ECwnlev1faLu1HhagErRqzk/PCwTyYDfKWbRXeZusuMilrPQzE7XXbw7S0W83I8RkR 0NU2GU+CifZmK5F1bzSfMk7iuyLoiT8dahh7XLrD6Vxf2GQM64bo5doYev4/feiErK//e9fcwwq IiTed6Z8+H1AG1Tq9UZRDy+7pZZyFP9UYTzrQsdCPGIKevUg X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no need to register camera clock controllers during subsys init calls. Use module_platform_driver() instead. Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/camcc-sc7180.c | 12 +----------- drivers/clk/qcom/camcc-sc7280.c | 12 +----------- drivers/clk/qcom/camcc-sdm845.c | 12 +----------- drivers/clk/qcom/camcc-sm6350.c | 12 +----------- 4 files changed, 4 insertions(+), 44 deletions(-) diff --git a/drivers/clk/qcom/camcc-sc7180.c b/drivers/clk/qcom/camcc-sc7180.c index 0a9a6df3ddac..a78808b22b03 100644 --- a/drivers/clk/qcom/camcc-sc7180.c +++ b/drivers/clk/qcom/camcc-sc7180.c @@ -1703,17 +1703,7 @@ static struct platform_driver cam_cc_sc7180_driver = { }, }; -static int __init cam_cc_sc7180_init(void) -{ - return platform_driver_register(&cam_cc_sc7180_driver); -} -subsys_initcall(cam_cc_sc7180_init); - -static void __exit cam_cc_sc7180_exit(void) -{ - platform_driver_unregister(&cam_cc_sc7180_driver); -} -module_exit(cam_cc_sc7180_exit); +module_platform_driver(cam_cc_sc7180_driver); MODULE_DESCRIPTION("QTI CAM_CC SC7180 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/camcc-sc7280.c b/drivers/clk/qcom/camcc-sc7280.c index 49f046ea857c..d89ddb2298e3 100644 --- a/drivers/clk/qcom/camcc-sc7280.c +++ b/drivers/clk/qcom/camcc-sc7280.c @@ -2468,17 +2468,7 @@ static struct platform_driver cam_cc_sc7280_driver = { }, }; -static int __init cam_cc_sc7280_init(void) -{ - return platform_driver_register(&cam_cc_sc7280_driver); -} -subsys_initcall(cam_cc_sc7280_init); - -static void __exit cam_cc_sc7280_exit(void) -{ - platform_driver_unregister(&cam_cc_sc7280_driver); -} -module_exit(cam_cc_sc7280_exit); +module_platform_driver(cam_cc_sc7280_driver); MODULE_DESCRIPTION("QTI CAM_CC SC7280 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/camcc-sdm845.c b/drivers/clk/qcom/camcc-sdm845.c index 27d44188a7ab..8466d03e0d05 100644 --- a/drivers/clk/qcom/camcc-sdm845.c +++ b/drivers/clk/qcom/camcc-sdm845.c @@ -1746,17 +1746,7 @@ static struct platform_driver cam_cc_sdm845_driver = { }, }; -static int __init cam_cc_sdm845_init(void) -{ - return platform_driver_register(&cam_cc_sdm845_driver); -} -subsys_initcall(cam_cc_sdm845_init); - -static void __exit cam_cc_sdm845_exit(void) -{ - platform_driver_unregister(&cam_cc_sdm845_driver); -} -module_exit(cam_cc_sdm845_exit); +module_platform_driver(cam_cc_sdm845_driver); MODULE_DESCRIPTION("QTI CAM_CC SDM845 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/camcc-sm6350.c b/drivers/clk/qcom/camcc-sm6350.c index acba9f99d960..e4e7b308ecf1 100644 --- a/drivers/clk/qcom/camcc-sm6350.c +++ b/drivers/clk/qcom/camcc-sm6350.c @@ -1890,17 +1890,7 @@ static struct platform_driver camcc_sm6350_driver = { }, }; -static int __init camcc_sm6350_init(void) -{ - return platform_driver_register(&camcc_sm6350_driver); -} -subsys_initcall(camcc_sm6350_init); - -static void __exit camcc_sm6350_exit(void) -{ - platform_driver_unregister(&camcc_sm6350_driver); -} -module_exit(camcc_sm6350_exit); +module_platform_driver(camcc_sm6350_driver); MODULE_DESCRIPTION("QTI CAMCC SM6350 Driver"); MODULE_LICENSE("GPL"); From patchwork Tue Feb 6 15:25:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 771006 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 905A0133999 for ; Tue, 6 Feb 2024 15:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233124; cv=none; b=dXYWg9L5AkegWj7POweii1YP8G7OkKkzEqr1FBqXC1ktc3mDmUu5379zrcjpS7YwyNgvDeaQJ2m+whcsqgmST4rgbOB1nAVMHDEVte1D0DOKohVC6INESXYEIgAPnwRDldAdr7tb6XlytLGEIxlQS0VIh1k2tNZXQ+MUQSLjGTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233124; c=relaxed/simple; bh=Fql+a8tRt2YVJzAnqeHw0bgDB4KVonjRDm2gaC6Sd98=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=el8NZPhGVweuqT/+MjbZ209oYLJZYprBoUou34NJBFJvu9L73trc3uD+QyqXuzoCm//qQTN/HBny4hTNhAILjLddXz47E0BJk6YVf9BIffaSHYGcUNTKtdp6Cgm/EZ2+AKgxOulEN4Y0iPwoRiM9Z77AN4uQxG66RRyYUMeff28= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Qk9LK/KT; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Qk9LK/KT" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5115fcef9e9so871202e87.3 for ; Tue, 06 Feb 2024 07:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707233119; x=1707837919; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Rlx3QI7AecwFxZsp1g5N7+Cd8M7MGWHOiX8rVVieN2E=; b=Qk9LK/KT9dUH5nI26q00JyJLh7df7Soz1AYXxHRYC9HXrdMfz3OAMLlXX9y/EiFS3D 1MJPnM+aU6WTYdgV8n6jU0iwIS2IaEA8dC6tifDE9/t4e1F7BekO6hCTuCp7aDDRE7/U rtXu3SrBjz7izYwQy9CkvTlY7Oq71k6Xm6TRwxPiBZRJzQC5o7yuahNtVK7Notugcsz9 ZY7WRdOJhkg/n37k8Bh7r3x9aN+6BWV42/1YKztPh8H0shK8Yar5kKt8NMfkbgjl/pvL UdfDPTzFvl8qR7iOGOCxX1pMKejVwe1J8WgUFN2uFZepOlJr28amneG5IMrADRGsWahf +DzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707233119; x=1707837919; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rlx3QI7AecwFxZsp1g5N7+Cd8M7MGWHOiX8rVVieN2E=; b=Wmrk7zlk5K00KPr9M2RvLZ0KnRw02ruXC31ubkKw6qW+2rGdDqCDC0MXNqgC98OemG aaOHXRQOk6mv3oDc+zgNmfjoHaedDRq4YNS67ii/NvFMFEJjaAx+oP2I34fEf3oXTco8 5nINIS//cTGIuCO51wfNS7zfP+BKN6scQWsPryHoKakIhwOiclTbZ/C0uEdkRfh2nLFy uDntXXalO8psAg3cgsjUy71WL6/gX1kIHSkZgYfdrDsuxFI9bOYJSStSAvcTugJVTQOZ vy9l/KVnKxK7cD98psvK5aO65Q2KPn9niOm+QYYATXv8iSr6CEKBIDiSGDPjRZXS1RAn EbsA== X-Gm-Message-State: AOJu0YyGrHk6oRbedxsudeG7CzcQdArDS2NyqhPdEFAUfiK5+hU9AHD5 YUg91lTqwtT4IDzN0s73pnEbWRrOX3bzUzz+qMtaZ650ZxYOekyROtt0qyDcjFI= X-Google-Smtp-Source: AGHT+IGtQKSHAtAMzXGsQTqTG12MyyJgH1e+qu8+ezRm45baYhcn6Lu5ec97DJ3V2QQ8qxe+vEy24A== X-Received: by 2002:a19:6717:0:b0:511:475b:7079 with SMTP id b23-20020a196717000000b00511475b7079mr2002976lfc.43.1707233118853; Tue, 06 Feb 2024 07:25:18 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXhNlGnS+6C7zLH8/rit/oBY72xVsWXI0bAMh0MxKGXLs8mhCNOKBg2ds1t4OEocOmaTdT3nFBN1oxenfGrFlaNZbr+tBYYQuL0hRyGRAPkhi9s+U3R0sE2KSdwP39CUdrgatL9rzpjfqWNPRJar3oEa7zPusuvl26g3natw7P7zVTk7gaG1lTSovlLNTDD1BtNUaieHRWOZf4FVuuAoqMboT/bkK4H4rQbF8Eu3b+tOEWxnvshxRDTLBnbFVMwYF2Iew== Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u4-20020a056512128400b005114a6cbc57sm264624lfs.46.2024.02.06.07.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:25:18 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 06 Feb 2024 17:25:13 +0200 Subject: [PATCH 2/4] clk: qcom: dispcc-*: switch to module_platform_driver Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240206-clk-module-platform-driver-v1-2-db799bd2feeb@linaro.org> References: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> In-Reply-To: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=9703; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Fql+a8tRt2YVJzAnqeHw0bgDB4KVonjRDm2gaC6Sd98=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlwk9ch8K3ciEUWF46a54BO+HAyHPDfwJFYRiIO +7W1PJlh4eJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcJPXAAKCRCLPIo+Aiko 1RqaCACOC/FEL3YlAgQbhVPnQoDu5lz9a7uMnxojHC4YIHFJ1r6K0zp8xRZqyhOztF0+eDqMBAj oJhVmJyxRGbAWRLDvWwTU6Qij7KAP1ZCQ5oPV2YNSZkywM0uRg44UGuul+l2KISOlxQly29O4T7 7vWmU8G+vWEzVLx2mnwCYDWPtmPtheUdnp009c1ZFhm4kzlG6hr1/Gd2pMLNJCKrtA+xd42RpNB lLrvoK5QwUZmUU801BQ5ZW/8jXo1BszhG32wqLImr+044kpIs3fbhX853k9jAS7uf1GHhTnmh2v EZxd4poEarZwMddzh18rrgwfDVFy2MTFcgnJmthl2ZAdtvq1 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no need to register display clock controllers during subsys init calls. Use module_platform_driver() instead. Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/dispcc-qcm2290.c | 12 +----------- drivers/clk/qcom/dispcc-sc7180.c | 12 +----------- drivers/clk/qcom/dispcc-sc7280.c | 12 +----------- drivers/clk/qcom/dispcc-sc8280xp.c | 12 +----------- drivers/clk/qcom/dispcc-sdm845.c | 12 +----------- drivers/clk/qcom/dispcc-sm6125.c | 12 +----------- drivers/clk/qcom/dispcc-sm6350.c | 12 +----------- drivers/clk/qcom/dispcc-sm6375.c | 12 +----------- drivers/clk/qcom/dispcc-sm8250.c | 12 +----------- drivers/clk/qcom/dispcc-sm8450.c | 12 +----------- drivers/clk/qcom/dispcc-sm8550.c | 12 +----------- drivers/clk/qcom/dispcc-sm8650.c | 12 +----------- 12 files changed, 12 insertions(+), 132 deletions(-) diff --git a/drivers/clk/qcom/dispcc-qcm2290.c b/drivers/clk/qcom/dispcc-qcm2290.c index 9206f0eed446..f3ac886d0226 100644 --- a/drivers/clk/qcom/dispcc-qcm2290.c +++ b/drivers/clk/qcom/dispcc-qcm2290.c @@ -539,17 +539,7 @@ static struct platform_driver disp_cc_qcm2290_driver = { }, }; -static int __init disp_cc_qcm2290_init(void) -{ - return platform_driver_register(&disp_cc_qcm2290_driver); -} -subsys_initcall(disp_cc_qcm2290_init); - -static void __exit disp_cc_qcm2290_exit(void) -{ - platform_driver_unregister(&disp_cc_qcm2290_driver); -} -module_exit(disp_cc_qcm2290_exit); +module_platform_driver(disp_cc_qcm2290_driver); MODULE_DESCRIPTION("QTI DISP_CC qcm2290 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/dispcc-sc7180.c b/drivers/clk/qcom/dispcc-sc7180.c index 9536bfc72a43..38d7859981c7 100644 --- a/drivers/clk/qcom/dispcc-sc7180.c +++ b/drivers/clk/qcom/dispcc-sc7180.c @@ -724,17 +724,7 @@ static struct platform_driver disp_cc_sc7180_driver = { }, }; -static int __init disp_cc_sc7180_init(void) -{ - return platform_driver_register(&disp_cc_sc7180_driver); -} -subsys_initcall(disp_cc_sc7180_init); - -static void __exit disp_cc_sc7180_exit(void) -{ - platform_driver_unregister(&disp_cc_sc7180_driver); -} -module_exit(disp_cc_sc7180_exit); +module_platform_driver(disp_cc_sc7180_driver); MODULE_DESCRIPTION("QTI DISP_CC SC7180 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/dispcc-sc7280.c b/drivers/clk/qcom/dispcc-sc7280.c index ad596d567f6a..95d56f49a1de 100644 --- a/drivers/clk/qcom/dispcc-sc7280.c +++ b/drivers/clk/qcom/dispcc-sc7280.c @@ -895,17 +895,7 @@ static struct platform_driver disp_cc_sc7280_driver = { }, }; -static int __init disp_cc_sc7280_init(void) -{ - return platform_driver_register(&disp_cc_sc7280_driver); -} -subsys_initcall(disp_cc_sc7280_init); - -static void __exit disp_cc_sc7280_exit(void) -{ - platform_driver_unregister(&disp_cc_sc7280_driver); -} -module_exit(disp_cc_sc7280_exit); +module_platform_driver(disp_cc_sc7280_driver); MODULE_DESCRIPTION("QTI DISP_CC sc7280 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/dispcc-sc8280xp.c b/drivers/clk/qcom/dispcc-sc8280xp.c index 30f636b9f0ec..3ebf02d459f4 100644 --- a/drivers/clk/qcom/dispcc-sc8280xp.c +++ b/drivers/clk/qcom/dispcc-sc8280xp.c @@ -3202,17 +3202,7 @@ static struct platform_driver disp_cc_sc8280xp_driver = { }, }; -static int __init disp_cc_sc8280xp_init(void) -{ - return platform_driver_register(&disp_cc_sc8280xp_driver); -} -subsys_initcall(disp_cc_sc8280xp_init); - -static void __exit disp_cc_sc8280xp_exit(void) -{ - platform_driver_unregister(&disp_cc_sc8280xp_driver); -} -module_exit(disp_cc_sc8280xp_exit); +module_platform_driver(disp_cc_sc8280xp_driver); MODULE_DESCRIPTION("Qualcomm SC8280XP dispcc driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/qcom/dispcc-sdm845.c b/drivers/clk/qcom/dispcc-sdm845.c index 735adfefc379..501dc29f8054 100644 --- a/drivers/clk/qcom/dispcc-sdm845.c +++ b/drivers/clk/qcom/dispcc-sdm845.c @@ -872,17 +872,7 @@ static struct platform_driver disp_cc_sdm845_driver = { }, }; -static int __init disp_cc_sdm845_init(void) -{ - return platform_driver_register(&disp_cc_sdm845_driver); -} -subsys_initcall(disp_cc_sdm845_init); - -static void __exit disp_cc_sdm845_exit(void) -{ - platform_driver_unregister(&disp_cc_sdm845_driver); -} -module_exit(disp_cc_sdm845_exit); +module_platform_driver(disp_cc_sdm845_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("QTI DISPCC SDM845 Driver"); diff --git a/drivers/clk/qcom/dispcc-sm6125.c b/drivers/clk/qcom/dispcc-sm6125.c index 87b27053ddb6..1cc5f220a3c4 100644 --- a/drivers/clk/qcom/dispcc-sm6125.c +++ b/drivers/clk/qcom/dispcc-sm6125.c @@ -693,17 +693,7 @@ static struct platform_driver disp_cc_sm6125_driver = { }, }; -static int __init disp_cc_sm6125_init(void) -{ - return platform_driver_register(&disp_cc_sm6125_driver); -} -subsys_initcall(disp_cc_sm6125_init); - -static void __exit disp_cc_sm6125_exit(void) -{ - platform_driver_unregister(&disp_cc_sm6125_driver); -} -module_exit(disp_cc_sm6125_exit); +module_platform_driver(disp_cc_sm6125_driver); MODULE_DESCRIPTION("QTI DISPCC SM6125 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/dispcc-sm6350.c b/drivers/clk/qcom/dispcc-sm6350.c index ea6f54ed846e..839435362010 100644 --- a/drivers/clk/qcom/dispcc-sm6350.c +++ b/drivers/clk/qcom/dispcc-sm6350.c @@ -781,17 +781,7 @@ static struct platform_driver disp_cc_sm6350_driver = { }, }; -static int __init disp_cc_sm6350_init(void) -{ - return platform_driver_register(&disp_cc_sm6350_driver); -} -subsys_initcall(disp_cc_sm6350_init); - -static void __exit disp_cc_sm6350_exit(void) -{ - platform_driver_unregister(&disp_cc_sm6350_driver); -} -module_exit(disp_cc_sm6350_exit); +module_platform_driver(disp_cc_sm6350_driver); MODULE_DESCRIPTION("QTI DISP_CC SM6350 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/dispcc-sm6375.c b/drivers/clk/qcom/dispcc-sm6375.c index caa1b90a5ff2..d81d4e3c0b0d 100644 --- a/drivers/clk/qcom/dispcc-sm6375.c +++ b/drivers/clk/qcom/dispcc-sm6375.c @@ -594,17 +594,7 @@ static struct platform_driver disp_cc_sm6375_driver = { }, }; -static int __init disp_cc_sm6375_init(void) -{ - return platform_driver_register(&disp_cc_sm6375_driver); -} -subsys_initcall(disp_cc_sm6375_init); - -static void __exit disp_cc_sm6375_exit(void) -{ - platform_driver_unregister(&disp_cc_sm6375_driver); -} -module_exit(disp_cc_sm6375_exit); +module_platform_driver(disp_cc_sm6375_driver); MODULE_DESCRIPTION("QTI DISPCC SM6375 Driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/qcom/dispcc-sm8250.c b/drivers/clk/qcom/dispcc-sm8250.c index e17bb8b543b5..9567219ac9b2 100644 --- a/drivers/clk/qcom/dispcc-sm8250.c +++ b/drivers/clk/qcom/dispcc-sm8250.c @@ -1383,17 +1383,7 @@ static struct platform_driver disp_cc_sm8250_driver = { }, }; -static int __init disp_cc_sm8250_init(void) -{ - return platform_driver_register(&disp_cc_sm8250_driver); -} -subsys_initcall(disp_cc_sm8250_init); - -static void __exit disp_cc_sm8250_exit(void) -{ - platform_driver_unregister(&disp_cc_sm8250_driver); -} -module_exit(disp_cc_sm8250_exit); +module_platform_driver(disp_cc_sm8250_driver); MODULE_DESCRIPTION("QTI DISPCC SM8250 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/dispcc-sm8450.c b/drivers/clk/qcom/dispcc-sm8450.c index 2c4aecd75186..2afa2c9d3c97 100644 --- a/drivers/clk/qcom/dispcc-sm8450.c +++ b/drivers/clk/qcom/dispcc-sm8450.c @@ -1815,17 +1815,7 @@ static struct platform_driver disp_cc_sm8450_driver = { }, }; -static int __init disp_cc_sm8450_init(void) -{ - return platform_driver_register(&disp_cc_sm8450_driver); -} -subsys_initcall(disp_cc_sm8450_init); - -static void __exit disp_cc_sm8450_exit(void) -{ - platform_driver_unregister(&disp_cc_sm8450_driver); -} -module_exit(disp_cc_sm8450_exit); +module_platform_driver(disp_cc_sm8450_driver); MODULE_DESCRIPTION("QTI DISPCC SM8450 Driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/qcom/dispcc-sm8550.c b/drivers/clk/qcom/dispcc-sm8550.c index f96d8b81fd9a..3a97f7897932 100644 --- a/drivers/clk/qcom/dispcc-sm8550.c +++ b/drivers/clk/qcom/dispcc-sm8550.c @@ -1808,17 +1808,7 @@ static struct platform_driver disp_cc_sm8550_driver = { }, }; -static int __init disp_cc_sm8550_init(void) -{ - return platform_driver_register(&disp_cc_sm8550_driver); -} -subsys_initcall(disp_cc_sm8550_init); - -static void __exit disp_cc_sm8550_exit(void) -{ - platform_driver_unregister(&disp_cc_sm8550_driver); -} -module_exit(disp_cc_sm8550_exit); +module_platform_driver(disp_cc_sm8550_driver); MODULE_DESCRIPTION("QTI DISPCC SM8550 Driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/qcom/dispcc-sm8650.c b/drivers/clk/qcom/dispcc-sm8650.c index f3b1d9d16bae..4ccee9fabad8 100644 --- a/drivers/clk/qcom/dispcc-sm8650.c +++ b/drivers/clk/qcom/dispcc-sm8650.c @@ -1802,17 +1802,7 @@ static struct platform_driver disp_cc_sm8650_driver = { }, }; -static int __init disp_cc_sm8650_init(void) -{ - return platform_driver_register(&disp_cc_sm8650_driver); -} -subsys_initcall(disp_cc_sm8650_init); - -static void __exit disp_cc_sm8650_exit(void) -{ - platform_driver_unregister(&disp_cc_sm8650_driver); -} -module_exit(disp_cc_sm8650_exit); +module_platform_driver(video_cc_sm8650_driver); MODULE_DESCRIPTION("QTI DISPCC SM8650 Driver"); MODULE_LICENSE("GPL"); From patchwork Tue Feb 6 15:25:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 770450 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B87811350FA for ; Tue, 6 Feb 2024 15:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233126; cv=none; b=Fybtye7XASw1rvfY0WybkQFpOVBwiafo15GJG/FcE4KFFbeaPCIhuQMHmoxI4I4Zvc5e483KN7QL9x/R7wMzQr+C+dNXDrzqM7xz47SZxUbD61zbiAOvP/kQE/j5FecIinTreZ8iMa2zh70gzhR59SG8+hr5NTQQFVXcjXcGaUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233126; c=relaxed/simple; bh=qh1mmGDPB/lNTNdTCk/MXTX136OI5scb0cvj+QYp8h0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eE3ImDQqCIOQx49UAgl7aL6buadS8fFchASsywXjVpXC9OMVwJv6mYVLTBM+VjW8ULqqGYM6FHduSFrIb4xclkC1YmWWKJwjQwugMsNBr6QXuJNosUtoIZexHGzSJ7iAokuMgxEf1kkMl1s/T5DTeJ/6lxSLZWt39oxECEVqaiI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=buKwKyat; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="buKwKyat" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-51124d43943so9167617e87.2 for ; Tue, 06 Feb 2024 07:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707233119; x=1707837919; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=W7+YVokhD5wVV0qW4lEaps8SH0Q795cXPgXf8g7iQX8=; b=buKwKyat+ngFNVKQrhPBO9dbtIE+UZndU/nTEnlRQ6/iXMrnSzlZuXqvrK5fqvXPki 40cFSWMbbJOhhifBo2si/8Bd263cXaISh1SM/FYmCXiBV94bzJ/+OEIrUGB/fUFHWocn kjJNsk8Fxe0rSvmZj4WJLSuPswAwPA9QdgPIvSga3/SGGdGNnoHzoA4Da4ftAl2aepYN /hoJAOVsjGdeFLCMJvZFyNiccDK1bJRFOAN1F2lJ1TYUj1gc3ciSlUPzUCklTZsZ55vM 7mr33uGXEOo7DptvoB0SibKQaj7uct9sNILKpPCWYBoe0ymeFkDTOkqyi3PDRtk1SsPJ DDbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707233119; x=1707837919; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W7+YVokhD5wVV0qW4lEaps8SH0Q795cXPgXf8g7iQX8=; b=XXCD9FlE1i8BQy2nz8S/D1DSnhlZz2Rs5INQHbcci0D446nO+MKncQSnALRiFKo6Vj ygm46KiMW0hbBKhLYeJ9XdejNwkzgRuN6hm7ud5HMIR4NE1MGBpy5uHoQEhqaWBR//Bu IOZANOzyXBYKMNpCNoCoC1O4MYz5TzUzJu4RoS9+mJNPhPjnR2cDTdjnMDCtOqIUsdvl iPHURpvwTvcegO6VBd7+uWQWtJB8vxyKknmSedLa0hVng+58WwdKCoeqxdV4nScrd0yf XCxHnVYtK7NInxN8N7LhGTgVLiwmCiQnOd9Q4+PJ78ZbUKNJWTvCTw4EWWW3CsnomR7J WPAg== X-Gm-Message-State: AOJu0YyYwZK7nz1+u3t1al2ONDnATYzd7Jsgpy+GGUOpGkDA4N+uXvLv YrK64TgYWs8Dz7T/bslrb7VTML8TmM0vHHfn3t4MrwU1j9FkP5gEJCezhOqtfGVJ2le2sVtYXco i X-Google-Smtp-Source: AGHT+IEFJLz35xrgc6CB1WI5bxf4XJMOAzl/yvNbUwgyYEqFYnmbrmNoxoyfizhhvKXppj3VzI83kQ== X-Received: by 2002:a05:6512:2385:b0:511:6256:3b8d with SMTP id c5-20020a056512238500b0051162563b8dmr312140lfv.5.1707233119466; Tue, 06 Feb 2024 07:25:19 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWjZkMCe5t8DeBtWZ95TAqs9HjrhaaAvnU2XmrcBfeURLvVKw8rLo/6ExXdqX6bQjKgUiQKpA2/FExl6X2k/c+qKpY1gM2SW/Y4k+b6Bc/t0hVk4LXnnl13h04oO4sxt3D8GMUjRsqFWKh2RcFJTxsmGW/PBn2W3qmjNhleFV2w38rJMI4h1+6BZsEB/VePlhhFq/P6BpfmggtNR211ekLJe23284p/LXTeQiBJLYk5jYy1wF2mTeucSacqs5Yk63I7sA== Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u4-20020a056512128400b005114a6cbc57sm264624lfs.46.2024.02.06.07.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:25:19 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 06 Feb 2024 17:25:14 +0200 Subject: [PATCH 3/4] clk: qcom: gpucc-*: switch to module_platform_driver Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240206-clk-module-platform-driver-v1-3-db799bd2feeb@linaro.org> References: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> In-Reply-To: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=6407; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=qh1mmGDPB/lNTNdTCk/MXTX136OI5scb0cvj+QYp8h0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlwk9cffHvzbr5UkC8F7eKmrgXwo1KYYyBCICby 7smFpjbqDWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcJPXAAKCRCLPIo+Aiko 1XaGCACJ80IVTc7bpJ5frbKqWvZKazYViCYyTHRZ4xPa6YbhOz8sEhRr8UfJq2f9dM4E3DcbJJE 5IvCABK8vksU3JdrbGWmOS0NRQ5QHtWr15L8UtDy0jqUeM5xK5/pQ8sJ9CdVpYVranBuloUg0F5 Lk7jj3qItjKCYPFrgNruo4vTTmRlZUETfKRvCIzsL/NVX7974mh6knTaxWKfdoIVSVvyaH8QBoh iodXptdkPh5D6Nx4tjkwtqxW9a+Ek4Kbkuv/SBADyZ7QDNa3IepnvM/lqrbuJf3+YzEtI0xxsTy KCYq5IQmKjCWxOICBi6NSZAfKMOnKjrk5poznQar/RyFtxTG X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no need to register GPU clock controllers during subsys init calls. Use module_platform_driver() instead. Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/gpucc-sa8775p.c | 12 +----------- drivers/clk/qcom/gpucc-sc7180.c | 12 +----------- drivers/clk/qcom/gpucc-sc7280.c | 12 +----------- drivers/clk/qcom/gpucc-sdm845.c | 12 +----------- drivers/clk/qcom/gpucc-sm8150.c | 12 +----------- drivers/clk/qcom/gpucc-sm8250.c | 12 +----------- drivers/clk/qcom/gpucc-sm8350.c | 12 +----------- drivers/clk/qcom/gpucc-sm8550.c | 12 +----------- 8 files changed, 8 insertions(+), 88 deletions(-) diff --git a/drivers/clk/qcom/gpucc-sa8775p.c b/drivers/clk/qcom/gpucc-sa8775p.c index 26ecfa63be19..1167c42da39d 100644 --- a/drivers/clk/qcom/gpucc-sa8775p.c +++ b/drivers/clk/qcom/gpucc-sa8775p.c @@ -609,17 +609,7 @@ static struct platform_driver gpu_cc_sa8775p_driver = { }, }; -static int __init gpu_cc_sa8775p_init(void) -{ - return platform_driver_register(&gpu_cc_sa8775p_driver); -} -subsys_initcall(gpu_cc_sa8775p_init); - -static void __exit gpu_cc_sa8775p_exit(void) -{ - platform_driver_unregister(&gpu_cc_sa8775p_driver); -} -module_exit(gpu_cc_sa8775p_exit); +module_platform_driver(gpu_cc_sa8775p_driver); MODULE_DESCRIPTION("SA8775P GPUCC driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/qcom/gpucc-sc7180.c b/drivers/clk/qcom/gpucc-sc7180.c index 3f92f0b43be6..66f5b48cbf87 100644 --- a/drivers/clk/qcom/gpucc-sc7180.c +++ b/drivers/clk/qcom/gpucc-sc7180.c @@ -252,17 +252,7 @@ static struct platform_driver gpu_cc_sc7180_driver = { }, }; -static int __init gpu_cc_sc7180_init(void) -{ - return platform_driver_register(&gpu_cc_sc7180_driver); -} -subsys_initcall(gpu_cc_sc7180_init); - -static void __exit gpu_cc_sc7180_exit(void) -{ - platform_driver_unregister(&gpu_cc_sc7180_driver); -} -module_exit(gpu_cc_sc7180_exit); +module_platform_driver(gpu_cc_sc7180_driver); MODULE_DESCRIPTION("QTI GPU_CC SC7180 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/gpucc-sc7280.c b/drivers/clk/qcom/gpucc-sc7280.c index 1490cd45a654..68a3e007df1f 100644 --- a/drivers/clk/qcom/gpucc-sc7280.c +++ b/drivers/clk/qcom/gpucc-sc7280.c @@ -476,17 +476,7 @@ static struct platform_driver gpu_cc_sc7280_driver = { }, }; -static int __init gpu_cc_sc7280_init(void) -{ - return platform_driver_register(&gpu_cc_sc7280_driver); -} -subsys_initcall(gpu_cc_sc7280_init); - -static void __exit gpu_cc_sc7280_exit(void) -{ - platform_driver_unregister(&gpu_cc_sc7280_driver); -} -module_exit(gpu_cc_sc7280_exit); +module_platform_driver(gpu_cc_sc7280_driver); MODULE_DESCRIPTION("QTI GPU_CC SC7280 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/gpucc-sdm845.c b/drivers/clk/qcom/gpucc-sdm845.c index 970d7414bdf0..c87c3215dfe3 100644 --- a/drivers/clk/qcom/gpucc-sdm845.c +++ b/drivers/clk/qcom/gpucc-sdm845.c @@ -203,17 +203,7 @@ static struct platform_driver gpu_cc_sdm845_driver = { }, }; -static int __init gpu_cc_sdm845_init(void) -{ - return platform_driver_register(&gpu_cc_sdm845_driver); -} -subsys_initcall(gpu_cc_sdm845_init); - -static void __exit gpu_cc_sdm845_exit(void) -{ - platform_driver_unregister(&gpu_cc_sdm845_driver); -} -module_exit(gpu_cc_sdm845_exit); +module_platform_driver(gpu_cc_sdm845_driver); MODULE_DESCRIPTION("QTI GPUCC SDM845 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/gpucc-sm8150.c b/drivers/clk/qcom/gpucc-sm8150.c index c89a5b59ddb7..135601629cba 100644 --- a/drivers/clk/qcom/gpucc-sm8150.c +++ b/drivers/clk/qcom/gpucc-sm8150.c @@ -315,17 +315,7 @@ static struct platform_driver gpu_cc_sm8150_driver = { }, }; -static int __init gpu_cc_sm8150_init(void) -{ - return platform_driver_register(&gpu_cc_sm8150_driver); -} -subsys_initcall(gpu_cc_sm8150_init); - -static void __exit gpu_cc_sm8150_exit(void) -{ - platform_driver_unregister(&gpu_cc_sm8150_driver); -} -module_exit(gpu_cc_sm8150_exit); +module_platform_driver(gpu_cc_sm8150_driver); MODULE_DESCRIPTION("QTI GPUCC SM8150 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/gpucc-sm8250.c b/drivers/clk/qcom/gpucc-sm8250.c index 9c1f8ce32da4..84f7f65c8d42 100644 --- a/drivers/clk/qcom/gpucc-sm8250.c +++ b/drivers/clk/qcom/gpucc-sm8250.c @@ -331,17 +331,7 @@ static struct platform_driver gpu_cc_sm8250_driver = { }, }; -static int __init gpu_cc_sm8250_init(void) -{ - return platform_driver_register(&gpu_cc_sm8250_driver); -} -subsys_initcall(gpu_cc_sm8250_init); - -static void __exit gpu_cc_sm8250_exit(void) -{ - platform_driver_unregister(&gpu_cc_sm8250_driver); -} -module_exit(gpu_cc_sm8250_exit); +module_platform_driver(gpu_cc_sm8250_driver); MODULE_DESCRIPTION("QTI GPU_CC SM8250 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/gpucc-sm8350.c b/drivers/clk/qcom/gpucc-sm8350.c index 8dc54dff983f..38505d1388b6 100644 --- a/drivers/clk/qcom/gpucc-sm8350.c +++ b/drivers/clk/qcom/gpucc-sm8350.c @@ -621,17 +621,7 @@ static struct platform_driver gpu_cc_sm8350_driver = { }, }; -static int __init gpu_cc_sm8350_init(void) -{ - return platform_driver_register(&gpu_cc_sm8350_driver); -} -subsys_initcall(gpu_cc_sm8350_init); - -static void __exit gpu_cc_sm8350_exit(void) -{ - platform_driver_unregister(&gpu_cc_sm8350_driver); -} -module_exit(gpu_cc_sm8350_exit); +module_platform_driver(gpu_cc_sm8350_driver); MODULE_DESCRIPTION("QTI GPU_CC SM8350 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/gpucc-sm8550.c b/drivers/clk/qcom/gpucc-sm8550.c index 2fa8673424d7..836cefa8896d 100644 --- a/drivers/clk/qcom/gpucc-sm8550.c +++ b/drivers/clk/qcom/gpucc-sm8550.c @@ -594,17 +594,7 @@ static struct platform_driver gpu_cc_sm8550_driver = { }, }; -static int __init gpu_cc_sm8550_init(void) -{ - return platform_driver_register(&gpu_cc_sm8550_driver); -} -subsys_initcall(gpu_cc_sm8550_init); - -static void __exit gpu_cc_sm8550_exit(void) -{ - platform_driver_unregister(&gpu_cc_sm8550_driver); -} -module_exit(gpu_cc_sm8550_exit); +module_platform_driver(gpu_cc_sm8550_driver); MODULE_DESCRIPTION("QTI GPUCC SM8550 Driver"); MODULE_LICENSE("GPL"); From patchwork Tue Feb 6 15:25:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 770449 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5761C1353F6 for ; Tue, 6 Feb 2024 15:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233132; cv=none; b=hZURwD4pjtEeQ55mo56ApnKco4EoeByI/fArLdK4B54mPE82Ffo/OWri+Ioaz8oBQWj1cuSHh6Sjh36yGdj79vWutdodrRaje1DarDsHIJHKOXPwgixozsX2D4qW/KQhenEts9ycfe3V/unktNwe8fQn4941XOUO2mnWllSsTbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707233132; c=relaxed/simple; bh=Y9SBvxL3i8hOtZuvMNwlA9B15SIgezUZD0NJHCCdIRE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PMPp+q+8m5Yc3e6vBXfMyRvqRjFLcyCNOnW3ZbwXaz5FmwJEWmS2bN+mPM5OenGBhh8yF+swn4ogf0peHMXVCD2xAr05YiJ/GM1IhoJ368a8hNEDkAiNgWVXGRxqqgAxbYBI4W7vZjGmCZDgbz4CN1tt5hS6FXn19Ub0NJYWWKo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HziLtU4h; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HziLtU4h" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-511531f03f6so2159133e87.0 for ; Tue, 06 Feb 2024 07:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707233121; x=1707837921; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wqDk/G5uYV0fUFhAiQ9tKg3kBuNCYQXF8fplVLAiXXU=; b=HziLtU4haUgv/7l+Xze58KcNglW5Hckfl2Fz1UFXMAsqkTLOIaz0000PqG2YgUaOsp 7hXWtc+oH/Knp2tMzujLjZ/UHq24+UZowtPqqdC5LQvTAF/AW6AuWmYjvhO+MfHSxIts wD4q+h70QfmkOZ4Xvr4QORZKZBDWtczlZdS8wTZae08/OFIDRW20cjifLtatJcp6ymUG Iqe+HChwBVybMseSYIJiguyAwKgvbxvB5STuHHAg4FY+tjJgpHEryMqMMlCkJBUOoFNs t+vQS5Mnm8WVVSaTVXIS7AolM9t8o8FxGrjpr+jwevs2ne+EEhS+//dbzWOVTBhWx+ap Nz6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707233121; x=1707837921; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wqDk/G5uYV0fUFhAiQ9tKg3kBuNCYQXF8fplVLAiXXU=; b=EGbxVa3LWgWoQaRMaOT29O7p84y5WiPTijIKGXduiWP2zof8cpIMyBPrxWepnlr6P9 dAv12FsfoQwTJs8KpTa8iy+o2l1YkAcsYes+Bi7uOU9JidFdYE+bbqo7gpxJYNeqPFpf 3W/x2t40rz7Pa72D4YEkLKdfgUneUxhO1f4QmeFKnEXcSJ+CRH+eDHQaqMXUzz3otjqc 74ZT4j7kMLDErxzm3JNnqgQQ44OZ2jSIqVjVKV91O6YN4JtToYDHEcabzebV4G5Y8VAm T+UJj8ByAdbkkjqOa959FwKXNU2OMlUaGuQZaZp/tVdCp7OX2xGv/U11H7j1IWOcopQp iPaQ== X-Gm-Message-State: AOJu0YwUSKhu0tQMU13C3DHe/SqZHv83U9+QG+3Jvp12igp1w0tfYMtR 2V9oEH4/nNXqYBR8E13b4N7zzSa3kqBVmLujft5owcjioyFA6kMEd7FKRtZlMVs= X-Google-Smtp-Source: AGHT+IElAGKQHNXsQParHwyLesFBcGk3g+EP3Bx516LC+i9+w8Nf0PmWMeLH+FF6N/P846DpHhTYHQ== X-Received: by 2002:ac2:5e30:0:b0:511:4520:a308 with SMTP id o16-20020ac25e30000000b005114520a308mr1891956lfg.8.1707233120223; Tue, 06 Feb 2024 07:25:20 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUbez7L8Iy6rLRvCshXOUr8QIzdoxYegD3+jEU8/4uooO/dv2L1c+q5Z9DvsjdkOyc1atgv1m5QPnXjpgSh82XGQ7ogucH4BEmoY3wRfizBsWxcSNIjhA03ZsSe4Atbw8IlVyTOHSEt0um0hGW0ZrGa4CH7qnh9V7BWwMA9fVzVpkD5fnLre2ZM1RacUmUix2yZJBwOKuHA8dKLVLiMsskTeWLu7FPzWjBuTbC3zp24zqL631hHF+T9b4vpdqKzQJTy4w== Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id u4-20020a056512128400b005114a6cbc57sm264624lfs.46.2024.02.06.07.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:25:19 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 06 Feb 2024 17:25:15 +0200 Subject: [PATCH 4/4] clk: qcom: videocc-*: switch to module_platform_driver Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240206-clk-module-platform-driver-v1-4-db799bd2feeb@linaro.org> References: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> In-Reply-To: <20240206-clk-module-platform-driver-v1-0-db799bd2feeb@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=5767; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Y9SBvxL3i8hOtZuvMNwlA9B15SIgezUZD0NJHCCdIRE=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBlwk9daaT3AuMcTPxahElLzNQ5pnMZKqVNWWO11 ctFlKqdwOuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZcJPXQAKCRCLPIo+Aiko 1UwpB/9M3b9QGcoDLILOJX53Shj/lSDEiDo8bONwkOKoDWEAQCuDxLBucaa8LP20NOQJh6ZkZBm 4rc3nplGFk6OLDDhRYKJ2Vebl4uVyoYLFhQ1GqvkSjNEHowVSBSJVsYz4BfAF3p8BmVEg6nXp/l USOm4MyILqwhpttG7mg8mAm4+sgMBqBqAho5+w3ppSj9SgPmNMBj7um/AddfAowFGNth0F2lFaT B8zZPSGcNSqOvRyOPBn78KNQwQmTM4EMRmfZVVto1uavSyhzLlD8RF79lM0/AtUli1qdmXx4TM6 ojcRB/cQksCfE5tt7DE55fHcYGQLJCcbvhm8izP2sifoii+c X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A There is no need to register video clock controllers during subsys init calls. Use module_platform_driver() instead. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/videocc-sc7180.c | 12 +----------- drivers/clk/qcom/videocc-sc7280.c | 12 +----------- drivers/clk/qcom/videocc-sdm845.c | 12 +----------- drivers/clk/qcom/videocc-sm8150.c | 12 +----------- drivers/clk/qcom/videocc-sm8250.c | 12 +----------- drivers/clk/qcom/videocc-sm8450.c | 12 +----------- drivers/clk/qcom/videocc-sm8550.c | 12 +----------- 7 files changed, 7 insertions(+), 77 deletions(-) diff --git a/drivers/clk/qcom/videocc-sc7180.c b/drivers/clk/qcom/videocc-sc7180.c index 5b9b54f616b8..ae0f812f83e8 100644 --- a/drivers/clk/qcom/videocc-sc7180.c +++ b/drivers/clk/qcom/videocc-sc7180.c @@ -237,17 +237,7 @@ static struct platform_driver video_cc_sc7180_driver = { }, }; -static int __init video_cc_sc7180_init(void) -{ - return platform_driver_register(&video_cc_sc7180_driver); -} -subsys_initcall(video_cc_sc7180_init); - -static void __exit video_cc_sc7180_exit(void) -{ - platform_driver_unregister(&video_cc_sc7180_driver); -} -module_exit(video_cc_sc7180_exit); +module_platform_driver(video_cc_sc7180_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("QTI VIDEOCC SC7180 Driver"); diff --git a/drivers/clk/qcom/videocc-sc7280.c b/drivers/clk/qcom/videocc-sc7280.c index 615695d82319..cdd59c6f60df 100644 --- a/drivers/clk/qcom/videocc-sc7280.c +++ b/drivers/clk/qcom/videocc-sc7280.c @@ -309,17 +309,7 @@ static struct platform_driver video_cc_sc7280_driver = { }, }; -static int __init video_cc_sc7280_init(void) -{ - return platform_driver_register(&video_cc_sc7280_driver); -} -subsys_initcall(video_cc_sc7280_init); - -static void __exit video_cc_sc7280_exit(void) -{ - platform_driver_unregister(&video_cc_sc7280_driver); -} -module_exit(video_cc_sc7280_exit); +module_platform_driver(video_cc_sc7280_driver); MODULE_DESCRIPTION("QTI VIDEO_CC sc7280 Driver"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/videocc-sdm845.c b/drivers/clk/qcom/videocc-sdm845.c index c77a4dd5d39c..b7f21ecad961 100644 --- a/drivers/clk/qcom/videocc-sdm845.c +++ b/drivers/clk/qcom/videocc-sdm845.c @@ -340,16 +340,6 @@ static struct platform_driver video_cc_sdm845_driver = { }, }; -static int __init video_cc_sdm845_init(void) -{ - return platform_driver_register(&video_cc_sdm845_driver); -} -subsys_initcall(video_cc_sdm845_init); - -static void __exit video_cc_sdm845_exit(void) -{ - platform_driver_unregister(&video_cc_sdm845_driver); -} -module_exit(video_cc_sdm845_exit); +module_platform_driver(video_cc_sdm845_driver); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/qcom/videocc-sm8150.c b/drivers/clk/qcom/videocc-sm8150.c index f1456eaa87c4..7640b61563c0 100644 --- a/drivers/clk/qcom/videocc-sm8150.c +++ b/drivers/clk/qcom/videocc-sm8150.c @@ -277,17 +277,7 @@ static struct platform_driver video_cc_sm8150_driver = { }, }; -static int __init video_cc_sm8150_init(void) -{ - return platform_driver_register(&video_cc_sm8150_driver); -} -subsys_initcall(video_cc_sm8150_init); - -static void __exit video_cc_sm8150_exit(void) -{ - platform_driver_unregister(&video_cc_sm8150_driver); -} -module_exit(video_cc_sm8150_exit); +module_platform_driver(video_cc_sm8150_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("QTI VIDEOCC SM8150 Driver"); diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c index ad46c4014a40..6e7a267e7b2c 100644 --- a/drivers/clk/qcom/videocc-sm8250.c +++ b/drivers/clk/qcom/videocc-sm8250.c @@ -402,17 +402,7 @@ static struct platform_driver video_cc_sm8250_driver = { }, }; -static int __init video_cc_sm8250_init(void) -{ - return platform_driver_register(&video_cc_sm8250_driver); -} -subsys_initcall(video_cc_sm8250_init); - -static void __exit video_cc_sm8250_exit(void) -{ - platform_driver_unregister(&video_cc_sm8250_driver); -} -module_exit(video_cc_sm8250_exit); +module_platform_driver(video_cc_sm8250_driver); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("QTI VIDEOCC SM8250 Driver"); diff --git a/drivers/clk/qcom/videocc-sm8450.c b/drivers/clk/qcom/videocc-sm8450.c index 16a61146e619..bfb6fd47e0ba 100644 --- a/drivers/clk/qcom/videocc-sm8450.c +++ b/drivers/clk/qcom/videocc-sm8450.c @@ -448,17 +448,7 @@ static struct platform_driver video_cc_sm8450_driver = { }, }; -static int __init video_cc_sm8450_init(void) -{ - return platform_driver_register(&video_cc_sm8450_driver); -} -subsys_initcall(video_cc_sm8450_init); - -static void __exit video_cc_sm8450_exit(void) -{ - platform_driver_unregister(&video_cc_sm8450_driver); -} -module_exit(video_cc_sm8450_exit); +module_platform_driver(video_cc_sm8450_driver); MODULE_DESCRIPTION("QTI VIDEOCC SM8450 Driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/qcom/videocc-sm8550.c b/drivers/clk/qcom/videocc-sm8550.c index f3c9dfaee968..bd5dbaf9c64a 100644 --- a/drivers/clk/qcom/videocc-sm8550.c +++ b/drivers/clk/qcom/videocc-sm8550.c @@ -453,17 +453,7 @@ static struct platform_driver video_cc_sm8550_driver = { }, }; -static int __init video_cc_sm8550_init(void) -{ - return platform_driver_register(&video_cc_sm8550_driver); -} -subsys_initcall(video_cc_sm8550_init); - -static void __exit video_cc_sm8550_exit(void) -{ - platform_driver_unregister(&video_cc_sm8550_driver); -} -module_exit(video_cc_sm8550_exit); +module_platform_driver(video_cc_sm8550_driver); MODULE_DESCRIPTION("QTI VIDEOCC SM8550 Driver"); MODULE_LICENSE("GPL");