Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4086181pxj; Tue, 11 May 2021 20:01:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6GXttOLAKdTyiqfUjXiPcRspmhOTtGmtnH1iYKddusTxOwRUVRfeCi48588F7eBE4PLg0 X-Received: by 2002:a02:a48e:: with SMTP id d14mr4524767jam.12.1620788507247; Tue, 11 May 2021 20:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620788507; cv=none; d=google.com; s=arc-20160816; b=L8FHLrEDNz7Py5H14D6iw3eWhAajnFBwbBdA21S22W/bDZpFqET0UcYPKYRunDnb2u yRAeQSZCXwhkq35sUtjJ7P+J6M47e2I9DbmJaaGWo6iv/Mb6lmFoCCdXGO/g+ZWYmJFY qM9PE0M3A9nSLA1ifDIUVMUubC1AYzDMltIRJAC/w+RO29Gvkqtyc+HyumLwuwhK1mCB T6J/kGsxHRqeSb+VzwCJqOS5qcilZLHchxasgK7DgrrUQoOqlnLfeuRfLTohk2mHnC/h uO4ewvZQi/zJskNg51INQ2TALFZ0WPkjNHU9O8QO00p/RTpFhEKSmdoHNs9dzZR1jvh9 Nepw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=yirCsm1BWGnnVY9bytUdxPjSEeLMyreDrAH0seTTF1k=; b=l1c3eMgoR5XFOldmMWxNLzm+UYlr0QqG4XNxJ6LUS0iN079F/JwgsR1UDWPEY5KNeD g4+OPaCpKmzviy0rQ2l9KA1EOoLPgyKc5QRW29ohGzqbkS3ANsaku1FQEm1pGdmvwzig CPe6v27ybB4zP0p7spMD6PwbLGRO/IvEFO/Cq9X0EpKa9p+ojGn6Mqmv9ljpAI2VI+tq gI3lV4Dxz28PVMz5CskW/oI4wl3d/RNgOuY5U3cOYl2D/aQHvCuVzet1/JvJjFzxyUDy pEJLfwe1MtCCxQ3gEwYiOh5aBOKF/canfXKKf0ToYB0079vLPIZHPcFMtsV26ybdN/O+ jdyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si22725319ilg.78.2021.05.11.20.01.33; Tue, 11 May 2021 20:01:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhELDCE (ORCPT + 99 others); Tue, 11 May 2021 23:02:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2710 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbhELDCE (ORCPT ); Tue, 11 May 2021 23:02:04 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Ffzxg6mp9z1BHs5; Wed, 12 May 2021 10:58:15 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 11:00:45 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next] gpio: cadence: Add missing MODULE_DEVICE_TABLE Date: Wed, 12 May 2021 11:17:47 +0800 Message-ID: <1620789467-15227-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpio/gpio-cadence.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-cadence.c b/drivers/gpio/gpio-cadence.c index a4d3239..4ab3fcd 100644 --- a/drivers/gpio/gpio-cadence.c +++ b/drivers/gpio/gpio-cadence.c @@ -278,6 +278,7 @@ static const struct of_device_id cdns_of_ids[] = { { .compatible = "cdns,gpio-r1p02" }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, cdns_of_ids); static struct platform_driver cdns_gpio_driver = { .driver = { -- 2.6.2