Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4192901pxj; Tue, 11 May 2021 23:20:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpIvnHbOWviGqLLPNwkzJdVHmN1/ilYmQTu3yqsrKpd7DgvvbOFx6At7BKi4+78RH761I+ X-Received: by 2002:a17:906:a39a:: with SMTP id k26mr7889218ejz.350.1620800417435; Tue, 11 May 2021 23:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620800417; cv=none; d=google.com; s=arc-20160816; b=Vu6c9r8OjJ4JjoKU5tl0mMeN7vthcneHnoZtBjSMSMC0qSJrhyD0EUzjXEgT4Qg4ZT nVYgy5E8VWI9MFDzRiGpWz4R66uSBqm6AU1BP0hcdBnf/TdiL7jHIe3nAHdG0cZhCK5d L8ZJ40tm5OcVMsCkfvVWsJ8W8WMwSDexawx/WwhLsvZjHj40/nV8gAfeUOVuNIqKKFO2 OnwJJ0o2n0D7NzRXzFa0oKSG5+MaPlU/r8aUVNiyT5lMYq9Z9KnRLFOzJgOPTt3s4l4m FvIFT4wkwcclvDIU4X5C4OgoHvniCbYENNQplIs1Rar+AjfuVeRxkNf0Jjdy6CD3BSup Dw+Q== 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=aqHQQGEtgLA/j+mUO4Zd3OGbsJ+oyHGcfndnUuHzbfw=; b=ZEZ6CSY6xzyvxVcRCNDi1X1mM/t+BVKMkit8hm8y6euAwewOheSeflBFjty2SsgdzB zaSOUFoZmETXk/gfAppy6H1S4XSlCj4EddLQXsnXc9OS86dT62pa2e5T9cqMIj7n45Ec ZkStV/0l5T7VzK5UHVUoUe5MLwQqujyNGF3VCfaOEu9ei/qvkMxWm58HjIp0Y3+2hb7j yiNPI1k325xsBfi0GXHMMiWRIjhdoiGGxTzeaUqe41zNjNJ/DQnxjlf3uPBYjKXmCnqP xdNZyqpm384HcqreahOAfuEpDl+jdiKjWsKcWrO3snGXpsECbLDQpU3kfFZkA7rX5MjA /hqA== 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 c5si18038488eds.128.2021.05.11.23.19.54; Tue, 11 May 2021 23:20:17 -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 S229996AbhELGSG (ORCPT + 99 others); Wed, 12 May 2021 02:18:06 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2451 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbhELGSD (ORCPT ); Wed, 12 May 2021 02:18:03 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fg4Hn3NVKzCr03; Wed, 12 May 2021 14:14:13 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 14:16:44 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next] mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE Date: Wed, 12 May 2021 14:33:46 +0800 Message-ID: <1620801226-18474-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/modifies 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/mfd/da9052-i2c.c | 1 + drivers/mfd/stmpe-i2c.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c index 47556d2d..8ebfc7b 100644 --- a/drivers/mfd/da9052-i2c.c +++ b/drivers/mfd/da9052-i2c.c @@ -113,6 +113,7 @@ static const struct i2c_device_id da9052_i2c_id[] = { {"da9053-bc", DA9053_BC}, {} }; +MODULE_DEVICE_TABLE(i2c, da9052_i2c_id); #ifdef CONFIG_OF static const struct of_device_id dialog_dt_ids[] = { diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index 61aa020..cd2f452 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -109,7 +109,7 @@ static const struct i2c_device_id stmpe_i2c_id[] = { { "stmpe2403", STMPE2403 }, { } }; -MODULE_DEVICE_TABLE(i2c, stmpe_id); +MODULE_DEVICE_TABLE(i2c, stmpe_i2c_id); static struct i2c_driver stmpe_i2c_driver = { .driver = { -- 2.6.2