From patchwork Wed Oct 18 05:42:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13426382 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEF11CDB47E for ; Wed, 18 Oct 2023 05:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9aNIZE2CNp31v4ZfeN/ysgrWdsoBBoIebgWQuccFNaY=; b=IC+IOOZ8URMswb UdbFbdhSddQ1GcbKK+F+1+EX701hTXM7PdFZVI7Gk1A8yZemBNQ15PdIrosNvWOjwMQdbSux7Nebr TsbvZ57UwktJNk7dGdVgAy9k/IVd/1m0mHDMLMjzZb0zGcD9f9gGcyAsuvy5RfHUsDu1tXAXnA4bS J4cvP/i6CX2hPxuEvvkmd2SH7FDn7PWlT449s5QhwHF/W95g2STwU7EPxSy6hE+SClIvG/+F1bFPp Lj/ABFQSEI1dzgbKsxcgaOifeCqMCXVSd5naW0c1vhL2MU6k93FcYyRqgySTI19jalI346Qto2O7y CxSpp/tomzb+RCGEOEyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qszKP-00Dqa4-0E; Wed, 18 Oct 2023 05:42:45 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qszKC-00DqWQ-1l; Wed, 18 Oct 2023 05:42:33 +0000 Received: from umang.jainideasonboard.com (unknown [103.251.226.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 56481C80; Wed, 18 Oct 2023 07:42:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1697607744; bh=7ufUw1uThmTFwdBmj+s0xszTmlESjEzfNdB1fzs6WSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U4h6URXk8YQ2LBrF2FUhpmnEHhytpwiT+MSSJCgBNC/9PawvtijoHFqwbdSZyP260 FlfzdTKVCz4cG7u0IiFoGYy3PIsAPbstsJs6QhLuckJnFyXVAUFkR8HzMg+9p7X77P Sdny4rNdcQ1F+1s74NUCnWKLer1FVuFosUUp3Sn4= From: Umang Jain To: linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-media@vger.kernel.org Cc: Stefan Wahren , Greg Kroah-Hartman , Dan Carpenter , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH v2 3/3] staging: vc04_services: bcm2835-camera: Drop MODULE_ALIAS Date: Wed, 18 Oct 2023 11:12:14 +0530 Message-Id: <20231018054214.824296-4-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231018054214.824296-1-umang.jain@ideasonboard.com> References: <20231018054214.824296-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231017_224232_731713_9D479F85 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Drop MODULE_ALIAS in favour of MODULE_DEVICE_TABLE as the module alias should be picked from there. Signed-off-by: Umang Jain Reviewed-by: Laurent Pinchart --- .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c index c873eace1437..44901aab637b 100644 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c @@ -1995,9 +1995,16 @@ static void bcm2835_mmal_remove(struct vchiq_device *device) vchiq_mmal_finalise(instance); } +static const struct vchiq_bus_device_id id_table[] = { + { .name = "bcm2835-camera" }, + {} +}; +MODULE_DEVICE_TABLE(vchiq_bus, id_table); + static struct vchiq_driver bcm2835_camera_driver = { .probe = bcm2835_mmal_probe, .remove = bcm2835_mmal_remove, + .id_table = id_table, .driver = { .name = "bcm2835-camera", }, @@ -2008,4 +2015,3 @@ module_vchiq_driver(bcm2835_camera_driver) MODULE_DESCRIPTION("Broadcom 2835 MMAL video capture"); MODULE_AUTHOR("Vincent Sanders"); MODULE_LICENSE("GPL"); -MODULE_ALIAS("bcm2835-camera");