From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 5D9F93515E1 for ; Mon, 3 Aug 2026 22:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785796548; cv=none; b=pbyvO/GYXynXvkgpnvj0mGn++A69e6C0MEDYItqzpQ8BSvMfP2yP16SQ34iqzrmTIw51/SAM6Tih/TwL2jnYcu4fsKgyIO4m8ZVQa3/+luwsf8wQI4bEpEh2n1OK6FN4Z5U6iOe3xM05hWw0eszJ4FFPuS5JgYooE3L1Iu8Ebn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785796548; c=relaxed/simple; bh=AOMzPzODPf8mHc2kmr0Tt256KecgOEegIb/DMgf/W3k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C2lbC764m2r+/RL5otxcsIPfeZJUbA83NlX5q+/98Fg+9rOUMSX5+INGBfvsSRkCUdxomO/EY5IQPKGTx62nGlOOeM5N3yDRQslK9FShsO4heuJWgtm//uTcXDXukSBDQRdyxVDPtu7K6v2OMQewNyPkvC75RtWGclkPbv1TcL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JRNdIZkO; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JRNdIZkO" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-8485bd28dd0so4577344b3a.2 for ; Mon, 03 Aug 2026 15:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785796547; x=1786401347; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+dXpnyUMT81EKJBXnNMHRmhaDilXzipQAqbMBWXRrrs=; b=JRNdIZkOxAVUx/fy13PEzLxli8+MKk2ae0u5+I+8IQu/mWnmgLXAs6IwG4mLuvEx9m W/5C/BsGdWmMzs/+xXISqi1ZhxVkqGTzqNeov/UAhN3GTBKq2Xn22OKgxhFKrs/dvmnn 5fhSec2gLw62Z7mYoTq/4r21wEIgepULxwEieK22MpOT1WeFuZNERxONO/PXFRWHNKtl AfIWosg9SrqRPYhG/Jp8rB8kCC8OQ/yglnJDg3tsiv8oN1Oy+5c/p4lwuGXb0BzYiF2t uSG5YOzm6xA6cDUi9HiJpFrziDINSg8j24yRhBXn9dJYs8/qx/4PZir5B6C7UD8W66mU fyCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785796547; x=1786401347; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+dXpnyUMT81EKJBXnNMHRmhaDilXzipQAqbMBWXRrrs=; b=ihl9O9i9flpRgOgwYOVZDGpbTtjfPFsG21r5V+KNhjAGKgK9QhtyVTydTwB4U9YI1F 9xTern3Mzi/Xj95tEA2Xs0GIar9naJrI/naXCL8Xg2+PlreUFJ5X/o2asJZpOWVSkMmK pDbeKKs63c7YlU04B6LOuqkI7MhXYsh2wn7WPpoikxiFO9IUCS7RsDWkgFtRxru+WPs1 Lbbxj1P9Vck+OQKKf8Ry04w3473goJ11224eVVy7vPkZYnTM4XI8eU2hcFBk1EWInRSh tuKVO1Ai2NzNugld5isOc52D4dblihVMvuaNd2wisw4RTSfTaiZRsOMlieZGGC3E3eP+ nglw== X-Forwarded-Encrypted: i=1; AHgh+RoL0opWOQk6LQK6mfAO2xZe/tK8rbcAb6719zYXwYXmjN+SKmL50qdnd1NU79CraOyWOo7D+Ae+MiHojy0=@vger.kernel.org X-Gm-Message-State: AOJu0YzJSDIcEWQPlxjwGAS20KfAPCD0zyTzmk3ptge3k03nQZZcqauQ SbIMdEQlIJci9IMPI5SMrDtEvOcpys0HAAwZ9aoPSmhT1WfTG0GAQO/4 X-Gm-Gg: AR+sD11ktbA3ry9F1hHyJB4wHpLP7fNsUv1rUmEvgol58ZKjpCX4sQvRd+Zh8wbVe7v j/g0DtZ3QS7v8N3ZYq9mNazi+6Pg99m8g4ij3qckh1iicawEW1uunlnwQ2p0El+YEGt4Tr7FP79 1V4grNZ7IGJzTkdghXyZqEVvtJL3SG8OrE/Zt6AuqV2uL4EGta7qExtsUP6P/EApaqd4g/Xnx6X zZo+KzATLyr2nBkNFrCmw8kUj7PC6rPYxoxm39ukgNzhk/lOfII4ylUQUdCGHOzGF0kV2x+zeDJ Xyxj/+TpPNX4U2YJO7i4sVaUQDtpDVV6dx8qYeUBSdGpVS81TCyN+iaF7puKlTF2TlF/Xsk/EzI EQOpTAInTYsR+0pE6mFg5PxohcjjIXNsUnyRKbQtVvMEw8jkGANzgM+FWUX56IsGSu1A+vWJtYB p2BMD4Qh3DznSbekaVEkNhm170NPGphLXZ4s3XH4zC0AErA2NGHQ778IFYyAPrcLDRCdN/ezqXW xybnYY9XOQJib/qZIESBODIS5VbG5khEEiMdGfwVJ7K02T2ImF63QUiFTc5QUhUwpE+6DF1zEZj 1y91IvPCK2yF6gjh49swVF19EZMnNzB17nKVeQ== X-Received: by 2002:a05:6a00:4219:b0:846:1b9:cb63 with SMTP id d2e1a72fcca58-84ee48f8ac6mr10770362b3a.62.1785796546634; Mon, 03 Aug 2026 15:35:46 -0700 (PDT) Received: from ryzen.lan ([2601:644:8000:7a86::e35]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84edc2d4473sm4186790b3a.40.2026.08.03.15.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2026 15:35:45 -0700 (PDT) From: Rosen Penev To: linux-gpio@vger.kernel.org Cc: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Linus Walleij , Bartosz Golaszewski , linuxppc-dev@lists.ozlabs.org (open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)), linux-kernel@vger.kernel.org (open list) Subject: [PATCHv2 3/8] gpio: ppc44x: Use module platform driver helper for GPIO Date: Mon, 3 Aug 2026 15:35:34 -0700 Message-ID: <20260803223539.86303-4-rosenp@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260803223539.86303-1-rosenp@gmail.com> References: <20260803223539.86303-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace the open-coded arch initcall registration with module_platform_driver(). The initcall level changes from arch_initcall to device_initcall, which is safe since the driver no longer needs architecture-specific ordering. Added MODULE info as a result, otherwise these warnings appear ERROR: modpost: missing MODULE_LICENSE() in drivers/gpio/gpio-ppc4xx.o WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpio/gpio-ppc4xx.o Assisted-by: Codex:GPT-5.5 Signed-off-by: Rosen Penev --- drivers/gpio/gpio-ppc44x.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ppc44x.c b/drivers/gpio/gpio-ppc44x.c index 9b874ff8b124..99fb11cd7966 100644 --- a/drivers/gpio/gpio-ppc44x.c +++ b/drivers/gpio/gpio-ppc44x.c @@ -204,8 +204,7 @@ static struct platform_driver ppc44x_gpio_driver = { }, }; -static int __init ppc44x_gpio_init(void) -{ - return platform_driver_register(&ppc44x_gpio_driver); -} -arch_initcall(ppc44x_gpio_init); +MODULE_DESCRIPTION("PPC44x gpio driver"); +MODULE_LICENSE("GPL"); + +module_platform_driver(ppc44x_gpio_driver); -- 2.55.0