Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4196211pxj; Tue, 11 May 2021 23:26:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7kYC2bw797mJ9zV/lx5h460SFOpolFBVTjbAKtoEFejbFCsoQJ90VUQ6KVmos8T33A/MY X-Received: by 2002:a5d:9744:: with SMTP id c4mr18411772ioo.76.1620800784324; Tue, 11 May 2021 23:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620800784; cv=none; d=google.com; s=arc-20160816; b=IfH8OJFHXvQiMV0H2eIFB6ggK23DWPT5txjC63dILfp1tjLiu7fd4WDVZixk0291zh 33Z89b27s4ZdRDhKOVJ78jNTS6mqjESVM5Sphai6u20AOK9Atw/W0cGZ+DIrr/HkrU81 SfcSsnMU4OCto4z57lbqQqdNa+w2qWgL2/kBmOhzLo6Vw7z9X6b1271b6jdSX6I3VNuL 8vT2njEMn0DPc8+hMvY+/+VceuK82E9ozz36v0yiZkkp976keAeVaA00paCqr5Yl2Kp6 /0GPShOORegOWEuZz+CcIR1QHE+JGE/VsCVc0ekN//74Gi8JTsPpvbnXW3wkkly/b7OD dWxw== 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=EjUC2MwMUW8jb6x5ETCyYSFDCxvTe3rYZ7fwDP1CweM=; b=JwcIqaSPBFLcdrlkquJjB2tGd8pUc2JAMAgmBFQal0CGRhNFh7IMfeknSAjEj+wQm4 ZW+5T1jbT+Jco8omn9lmaQzIfBYz8Zx8zPMZj9qLB9T7ZqgHoxMdK3LrSpveOO70IXUe CLizPE906C7Dl79ne/GTY4KHM3FiQlRLuMH2edQK4gCJigelNqbxsnT6I4uiQ1res4vW 8S1vIuQu8O22EkqdbW5VEQBBVFkg/KIgSyqIq5JZwwrd1HVcIrhJjYZufkMo2+Jv2uqP SsMLv8HGBKnclCLT7X7ZQGzcJeJZnK9wnxgXkCVPVhv+YSzoeqzOGt71HMlzl1dJ7Nf6 1h0g== 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 c2si21244454ilr.77.2021.05.11.23.26.11; Tue, 11 May 2021 23:26:24 -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 S230102AbhELG0G (ORCPT + 99 others); Wed, 12 May 2021 02:26:06 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2713 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbhELG0F (ORCPT ); Wed, 12 May 2021 02:26:05 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fg4T4665Cz16Q2c; Wed, 12 May 2021 14:22:16 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 14:24:46 +0800 From: Zou Wei To: , , CC: , Zou Wei Subject: [PATCH -next] misc: eeprom: Add missing MODULE_DEVICE_TABLE Date: Wed, 12 May 2021 14:41:48 +0800 Message-ID: <1620801708-18965-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/misc/eeprom/eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c index 34fa385..3fefb70 100644 --- a/drivers/misc/eeprom/eeprom.c +++ b/drivers/misc/eeprom/eeprom.c @@ -194,6 +194,7 @@ static const struct i2c_device_id eeprom_id[] = { { "eeprom", 0 }, { } }; +MODULE_DEVICE_TABLE(i2c, eeprom_id); static struct i2c_driver eeprom_driver = { .driver = { -- 2.6.2