From nobody Wed Dec 17 06:04:13 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 B7FCA2D0C9D for ; Mon, 15 Dec 2025 14:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765808272; cv=none; b=lDW9OT72y6N70dWv8Q93ajzvvEeTQpKBiJMm/RskEO28BNQNctwZAWZl0+aDnikdi0TFl1NE5RAi+/dodwRKlyhQrSMCMW0V1F10dgPFQqDy9WAxrl/4dViNMymuc/goncW6hbimRCYdVsAHNOHBSh+kX4hsyOidRo2/Uh+Zl4s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765808272; c=relaxed/simple; bh=ikmzIlbOd+LEhbyDv3j+DT9OAKYhGjQzZlQGjQMpYL8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ab7qLc+VOdsHg/deGRaJMJjqn2Gy3bMowRQ9g91o0IYmHs4eKMbmlfZ/pveQYTvZ5EruNJgOOyfrC+ZmAqKV36DEBZG+5GyiugEfOV9zPWygNPR5Fk54xw8VFGYwwycr5muKLy3WY742JjfwAxXXjC7RZIl0HIea9JOzc+6XbEQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=JsYgT0yN; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="JsYgT0yN" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-b7636c96b9aso581940866b.2 for ; Mon, 15 Dec 2025 06:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1765808265; x=1766413065; 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; bh=DstP1u05CPAHjOAUetfVzJW1wXxCkT+pjUtyyoYANxU=; b=JsYgT0yN+8lnYfvrLJVeu1PMbXUH584OwU1eAjaZi9SajgpFrWn1Xz0feUYqosaA3N fLelMUb+/UxbtiOhd9ZRtfFTdfEHucQT6v8jigmsq5Ksj0FsuXpYKiuugsVlZu9XWWGA T9oPK6WEfeQjaz9JfSDDduSW19EXjwlUnTstHjUQckLfGHwf1ktpJmcfwMM1ioVSNR4D aNaNzza+FQi7GPJS2jhlxCHAF+RK/8JSp5FyaWseXy3PAyDhkuHF/3HRyudjxxyQi3Ti BvbmvvTiT/X26NP1je7Qea7bcSsIKt0vV6qgzAuydRhJDgpWPZ4Oe4yRa2ArL4wucqfk XcNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765808265; x=1766413065; 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; bh=DstP1u05CPAHjOAUetfVzJW1wXxCkT+pjUtyyoYANxU=; b=NOgPq1zg3gNYPmpRkRcEQRU9UjDeBu1nsIhHKRlts5wy2B7q48SLN6/Jp70pOXXccu CyAOk2Ipeo/ZZDpLFEPJ4EMqWo8UEsn9LxNakcD9oIMy3193eXI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cEYQ+IwII2kbMYm7+RM3tx3GVb8FNltA== X-Received: by 2002:a17:907:3c89:b0:b73:572d:3b07 with SMTP id a640c23a62f3a-b7d236b62a1mr1080879566b.28.1765808265489; Mon, 15 Dec 2025 06:17:45 -0800 (PST) Received: from localhost (ip-046-005-122-062.um12.pools.vodafone-ip.de. [46.5.122.62]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b7cfa29f6cbsm1438920266b.5.2025.12.15.06.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Dec 2025 06:17:45 -0800 (PST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Jens Wiklander , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Alexandre Belloni Cc: Sumit Garg , op-tee@lists.trustedfirmware.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Sumit Garg Subject: [PATCH v2 07/17] rtc: optee: Make use of tee bus methods Date: Mon, 15 Dec 2025 15:16:37 +0100 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=2133; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=ikmzIlbOd+LEhbyDv3j+DT9OAKYhGjQzZlQGjQMpYL8=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBpQBheMbvEqJBwhAhTqzRRzs/PHvyCJQxdPljAW tHVglfhLtOJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaUAYXgAKCRCPgPtYfRL+ TutZB/wIvA2FIQU9tGTYvprs23GCWKp5tv902PnEn1WRPNA2wqjSj8Et20EmH8sojRdzzDJRsSa QNyyrBuRRrXRk+hnLGBnG5qTINCrKGW6TpoBHjLH5oDpUe9MoqbkKi4dLGxYIMTV7DNp7ANGg50 qdv6a7E3IcMB2qYuhJzPC4b1uQ/PiQcd0xej78j8Y1CY+fCPH1i0kLC3Hk5nHsHd/zftj/dBn56 DEd0WTmplWXVg9eMG/rwS8Q9+9ROV3yQ4+Jxcm4TfSpezTMHurNx0RFJxPWzBxWtblzX3tXFZsT 14C1B+SHAWvizy9CoqaogXbeS/QgQaxL+lyhvYrb9UaRJMjL X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable The tee bus got dedicated callbacks for probe and remove. Make use of these. This fixes a runtime warning about the driver needing to be converted to the bus methods. Reviewed-by: Sumit Garg Acked-by: Alexandre Belloni Signed-off-by: Uwe Kleine-K=C3=B6nig --- drivers/rtc/rtc-optee.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-optee.c b/drivers/rtc/rtc-optee.c index f924a729ead0..eefde789d194 100644 --- a/drivers/rtc/rtc-optee.c +++ b/drivers/rtc/rtc-optee.c @@ -547,9 +547,9 @@ static int optee_ctx_match(struct tee_ioctl_version_dat= a *ver, const void *data) return 0; } =20 -static int optee_rtc_probe(struct device *dev) +static int optee_rtc_probe(struct tee_client_device *rtc_device) { - struct tee_client_device *rtc_device =3D to_tee_client_device(dev); + struct device *dev =3D &rtc_device->dev; struct tee_ioctl_open_session_arg sess2_arg =3D {0}; struct tee_ioctl_open_session_arg sess_arg =3D {0}; struct optee_rtc *priv; @@ -682,8 +682,9 @@ static int optee_rtc_probe(struct device *dev) return err; } =20 -static int optee_rtc_remove(struct device *dev) +static void optee_rtc_remove(struct tee_client_device *rtc_device) { + struct device *dev =3D &rtc_device->dev; struct optee_rtc *priv =3D dev_get_drvdata(dev); =20 if (priv->features & TA_RTC_FEATURE_ALARM) { @@ -696,8 +697,6 @@ static int optee_rtc_remove(struct device *dev) tee_shm_free(priv->shm); tee_client_close_session(priv->ctx, priv->session_id); tee_client_close_context(priv->ctx); - - return 0; } =20 static int optee_rtc_suspend(struct device *dev) @@ -724,10 +723,10 @@ MODULE_DEVICE_TABLE(tee, optee_rtc_id_table); =20 static struct tee_client_driver optee_rtc_driver =3D { .id_table =3D optee_rtc_id_table, + .probe =3D optee_rtc_probe, + .remove =3D optee_rtc_remove, .driver =3D { .name =3D "optee_rtc", - .probe =3D optee_rtc_probe, - .remove =3D optee_rtc_remove, .pm =3D pm_sleep_ptr(&optee_rtc_pm_ops), }, }; --=20 2.47.3