Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4199987pxj; Tue, 11 May 2021 23:33:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+714+WTnR45FjVv3bhWhkUUevhXbk4gTp5eJsyXl+1+lohZeTU46S8rgRnlxZ2FM1RBKv X-Received: by 2002:aa7:c896:: with SMTP id p22mr41192505eds.225.1620801232858; Tue, 11 May 2021 23:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620801232; cv=none; d=google.com; s=arc-20160816; b=HeR1Y42LQ0WWRE9yI4AhhL1ir1AWAMLm73JBzNjq23Vh7SUJRTZLhWMI7VoxZMQ1Z7 crhJooxh2DePjj/UP0du07xw49MAIdLttsieJdHNR01hja6viPYEEDVdQ9N9Tc+kYHjy bgpd66AxTxuV+fl/9hkaJF/LIn89BhTf6egLPDNFxaeJY83GsrM7w/M8xZ8bi5az/aPo knkesk1d5pP/A6+2TOq/EijwXUZcMbvcRvC9Jq9H6qd243CpFkOpLvTFvI1bgWRdHv/z 77uwvD2owi6XjpeEWeCAUltf5tevpq0/men/bHLO2F6hdOfDk3dApLoCYxjGTv990heN GS7A== 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=SKGLJOFlCaKlkM1RAynbs7CEQUj2hL3lzxq6NjsrqYM=; b=NHcZoQOsPvy7+smIuVwvMW3sf06eIHoEaog9f+unXXOXvJJIwYInCWWPmEugCMidnV x7eWyOJxID5NbhAIKt7rtJZUh/BjdVetG8ks5bHfRjiHOBi2+TVlO1wOCtyIxfshqMGv YMoGitLfHvax18CFMLj2tYJtrSbLN4TZuuffzp+F+lI9JfPg6m8m+Z2HxxbNp/yF42LA P/gF3YlUwG06kXJHsU8ZBX09S03Nz/Qn66WjeaqXtd+8PoZxL/vo5S0vXqqq7kgtq4l+ U2PyrWd5kTVzMahl7DHZxtKlbBQQzkjsTBMt6hNqBEPFZ6UfyZKxXB8+7bGbWo0VOe6Y TZbA== 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 hh21si10428708ejb.473.2021.05.11.23.33.28; Tue, 11 May 2021 23:33:52 -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 S229803AbhELGdg (ORCPT + 99 others); Wed, 12 May 2021 02:33:36 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3726 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbhELGdf (ORCPT ); Wed, 12 May 2021 02:33:35 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fg4cw6GYkzmgKX; Wed, 12 May 2021 14:29:04 +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:32:16 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next] leds: turris-omnia: add missing MODULE_DEVICE_TABLE Date: Wed, 12 May 2021 14:49:18 +0800 Message-ID: <1620802158-19377-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/leds/leds-turris-omnia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index 2f9a289..1adfed1 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -274,6 +274,7 @@ static const struct i2c_device_id omnia_id[] = { { "omnia", 0 }, { } }; +MODULE_DEVICE_TABLE(i2c, omnia_id); static struct i2c_driver omnia_leds_driver = { .probe = omnia_leds_probe, -- 2.6.2