Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp571615rwb; Thu, 22 Sep 2022 03:46:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PxB8dgB5eMCQj6E38uAJYMYiLIzKuBQoou7G9fUb35lYc2G7PPJZUWYAjscUQEwT6iMS5 X-Received: by 2002:a05:6402:901:b0:454:2b6d:c39 with SMTP id g1-20020a056402090100b004542b6d0c39mr2570491edz.50.1663843611522; Thu, 22 Sep 2022 03:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663843611; cv=none; d=google.com; s=arc-20160816; b=kq41oSQug0+4BNI02MUjpyXnBEQB1xctNhZBNnjlmZ+gLn/+Iv7f+jrk3bpPq0cVpH YWQ6dQkpAop8BSbxTzuTmfGBQ5Lv9hISl/Rg8874FWZdDdA0d+I5cCQYBI9THhHOEPC2 TVLcQ4+jPfKaie79W65G6WJbLBBu3sWUzY+yC5QZkg4AIvV73RlM4yXLazPHs+dYg0+I MM8udgo1BzBgs1mzy9m9aT+XJOAIcioY8WrBe+8inJSiT1emMrejK8/jHP5EixM+SYDZ 1Mi52qup/VxWmAytAJ9xcbkIkdQf1WvMgL2HgwwOgpsikeaWVDFctJ4wPOax/C0DreYN +Hng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YLt5na6Q4CT5FingVvjW+teHc5sqGV6vMPZfN3klM6c=; b=rbPsD2nSP6xQCBf3ceYLR20FdBKS+RKBb5KZ5FRxfDOzBSAJn9reG36wxK/vQX7Ays cYdANnzO+HO9BiFgAQLeWyo0JugNjoEUo9/VU6loAaEFn4Cc75nBYd1zJJL045rp6ptR 2Z9y/rea+a0MnaclDXdpVOLwuuUeCiXCumxdPmH6ErWctyKWEKoK9h7bAu88RCRtFmf3 1ElmquPyz1JUkeYUDTfpogbNa6wI3gg1o0Bm/wjNTrC+NFbzkacAUBcXfp4HtkVNy/b6 DWxOULxvMS1XShVgtY/IrQYyJIZnDUWlyhu1W7Bk0+tkQRC6EkhvhH2qU6161F5R+Bjt H8MA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a50cb8c000000b00454424b5c2csi4588798edi.314.2022.09.22.03.46.23; Thu, 22 Sep 2022 03:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231488AbiIVKaN (ORCPT + 99 others); Thu, 22 Sep 2022 06:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbiIVKaL (ORCPT ); Thu, 22 Sep 2022 06:30:11 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8926E6CF69 for ; Thu, 22 Sep 2022 03:30:10 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MYBHp0mCtzMpKq; Thu, 22 Sep 2022 18:25:26 +0800 (CST) Received: from dggpemm500007.china.huawei.com (7.185.36.183) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 18:30:08 +0800 Received: from huawei.com (10.175.103.91) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 18:30:08 +0800 From: Yang Yingliang To: CC: , Subject: [PATCH -next] mfd: ocelot-spi: Add missing MODULE_DEVICE_TABLE Date: Thu, 22 Sep 2022 18:37:03 +0800 Message-ID: <20220922103703.1731266-1-yangyingliang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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. Fixes: f3e893626abe ("mfd: ocelot: Add support for the vsc7512 chip via spi") Signed-off-by: Yang Yingliang --- drivers/mfd/ocelot-spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/ocelot-spi.c b/drivers/mfd/ocelot-spi.c index 0f097f4829d1..2ecd271de2fb 100644 --- a/drivers/mfd/ocelot-spi.c +++ b/drivers/mfd/ocelot-spi.c @@ -276,6 +276,7 @@ static const struct spi_device_id ocelot_spi_ids[] = { { "vsc7512", 0 }, { } }; +MODULE_DEVICE_TABLE(spi, ocelot_spi_ids); static const struct of_device_id ocelot_spi_of_match[] = { { .compatible = "mscc,vsc7512" }, -- 2.25.1