Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp159445lqj; Wed, 10 Apr 2024 07:05:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbJxDo2EcmxgVp2+Gb3pry3/eULvmXxpl+30rdqKRoiXntT3Gm0W24OBTl3Iegg3t0JQY0uOiVeKEL1C2mLg/xEXRpFoI0+kJ8A0GojA== X-Google-Smtp-Source: AGHT+IHhYZYGP79QkJgJFk3JtL/apjOwumF/XC82mJrHzDpOLVE+qWaic+bMVvMJJDncFdr/ltEJ X-Received: by 2002:a19:8c17:0:b0:516:a0a5:a444 with SMTP id o23-20020a198c17000000b00516a0a5a444mr1833595lfd.2.1712757906908; Wed, 10 Apr 2024 07:05:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712757906; cv=pass; d=google.com; s=arc-20160816; b=l/AwcZAok/m3v8xQZfvG5Nt+OLH03FhzQUuW3CDmm1qJny4Bof0SXVjANinEFF3KtD eGaF1Vp5q8l9zwLAzie4WbTLbAR85PEyr/7H65ZbeUWLP+JohmDnjV/loZfJ1iuor/Ji +d/pgXPF2XANtPPKHTLcoV6SoyidkFxKl1w/ZDz+SKFIpf1nW/heYKB3dVmQRtQ4Fono RqU2z7uHdPMqI5naZ2xVAHhGRdW5aupwz4qeIHoZRpG8hyStaz86fetEpkqsZL+RgwqE Xe7iw4XifV7RZ6ZEEJTYa7+237ofqGtHJRJWMTGN/smBiyfBsYmVFjDEtFc7jYKohvKi zYLQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9hjSi/2Z4Esm750pB+Wn6BYHE6HYNnn7M/Y0ritzKVA=; fh=li+nOTWR+R+c2QHViCtM9aHEBgqgbpW81MUCABMZkAY=; b=aStB2sOeyJ09Nv2wmBvwXkyrc4NG0/lqhzTegwSfnYgS1bOMsaeWEp/D7VzqMpE6GP 6l8VAccpFpqnJF4tSCKSmiP5/vHgClTINP7J1WCMVamZ4MSVjSgB5kLQeoMHcUQE0aIH iof3pYxWWmkloaqSD2Lx8XKxKjCc2iKZY/IQqUix+2DH5y633/jvmCUFiYD4oDxan2IQ 7Mc7H2qEpNWfpqjMqfLBbYGwpNFu90Qd5lMOpZ98yFygguSYuFX68jWXrqyiAj0srl7e 9MyE3BWnsYoNsoRQPT4q+l+0ZOfQQ9jckahbSF4eCH4NsRlCUjwP2azwAF6H70RRKCoK Fh6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JWK419be; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-138696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hs31-20020a1709073e9f00b00a51d611cd59si3322372ejc.71.2024.04.10.07.05.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:05:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JWK419be; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-138696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 850C51F31E49 for ; Wed, 10 Apr 2024 14:01:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E6D916DEB3; Wed, 10 Apr 2024 13:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="JWK419be" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 9D61D15F406; Wed, 10 Apr 2024 13:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712757591; cv=none; b=oSkxO5J4Cs52iam/gOl4obOVvqKYERYgpLGuHZzvQpI5rZ5CUHIuBdvmOIHS6h+1EeKtq3eWB3FNHV+ai+/P8blJGgBkaKBK0f7v9X2l8NpVcBcTDqex0OrHEZS4KMhxVYrU2A5ibrX3fEL3NNyZnWm1q6VK1llIs8ymihvyTlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712757591; c=relaxed/simple; bh=4qCFUoIEU96IBV2b2tUi6AGuM8KAjc2gG9zsDeEvgPM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aLhvjVLYH4FXpGjvUpNPbqymYkBqxBI6YqyVSeuxuavQuvNJF7VzHb/CEvQQqup2UZRSpnYgFObuTaGjIANVM9pgAIvVmNRowVg57hdXQ+J5VBwvSOhaYHAgeEbPzZu/PxyKEmHGNEdp2tRb2tzXSvDKTKNyxLHzwEiN2+Cx12I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=JWK419be; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43ADxitJ056739; Wed, 10 Apr 2024 08:59:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712757584; bh=9hjSi/2Z4Esm750pB+Wn6BYHE6HYNnn7M/Y0ritzKVA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JWK419be5Q/pK8ZJopS7vAsQs2KyLKhDbnYFTUsP+lw4u6YQ5/6QlqbRrgUcXoona DcWyhw5bNZwcUX2h6myoEgRdiVP3gL9bgwFave/DOXdNBQvSWDf6bplm+x/v0cdPYs E91rhIj9M4tsbaVQEzZKFbKql7fbhW4aK+q5xbjI= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43ADxi6P029186 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Apr 2024 08:59:44 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 10 Apr 2024 08:59:44 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 10 Apr 2024 08:59:44 -0500 Received: from fllvsmtp8.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43ADxham067183; Wed, 10 Apr 2024 08:59:44 -0500 From: Andrew Davis To: Jassi Brar , Hari Nagalla , Nick Saulnier , Bjorn Andersson , Mathieu Poirier CC: , , Andrew Davis Subject: [PATCH v2 02/13] mailbox: omap: Remove unused omap_mbox_request_channel() function Date: Wed, 10 Apr 2024 08:59:31 -0500 Message-ID: <20240410135942.61667-3-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240410135942.61667-1-afd@ti.com> References: <20240410135942.61667-1-afd@ti.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 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 This function is not used, remove this function. Signed-off-by: Andrew Davis --- drivers/mailbox/omap-mailbox.c | 36 ---------------------------------- include/linux/omap-mailbox.h | 6 ------ 2 files changed, 42 deletions(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index 624a7ccc27285..8151722eef383 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c @@ -389,42 +389,6 @@ static struct omap_mbox *omap_mbox_device_find(struct omap_mbox_device *mdev, return mbox; } -struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl, - const char *chan_name) -{ - struct device *dev = cl->dev; - struct omap_mbox *mbox = NULL; - struct omap_mbox_device *mdev; - int ret; - - if (!dev) - return ERR_PTR(-ENODEV); - - if (dev->of_node) { - pr_err("%s: please use mbox_request_channel(), this API is supported only for OMAP non-DT usage\n", - __func__); - return ERR_PTR(-ENODEV); - } - - mutex_lock(&omap_mbox_devices_lock); - list_for_each_entry(mdev, &omap_mbox_devices, elem) { - mbox = omap_mbox_device_find(mdev, chan_name); - if (mbox) - break; - } - mutex_unlock(&omap_mbox_devices_lock); - - if (!mbox || !mbox->chan) - return ERR_PTR(-ENOENT); - - ret = mbox_bind_client(mbox->chan, cl); - if (ret) - return ERR_PTR(ret); - - return mbox->chan; -} -EXPORT_SYMBOL(omap_mbox_request_channel); - static struct class omap_mbox_class = { .name = "mbox", }; static int omap_mbox_register(struct omap_mbox_device *mdev) diff --git a/include/linux/omap-mailbox.h b/include/linux/omap-mailbox.h index 426a80fb32b5c..f8ddf8e814167 100644 --- a/include/linux/omap-mailbox.h +++ b/include/linux/omap-mailbox.h @@ -14,10 +14,4 @@ typedef int __bitwise omap_mbox_irq_t; #define IRQ_TX ((__force omap_mbox_irq_t) 1) #define IRQ_RX ((__force omap_mbox_irq_t) 2) -struct mbox_chan; -struct mbox_client; - -struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl, - const char *chan_name); - #endif /* OMAP_MAILBOX_H */ -- 2.39.2