Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3864769pxv; Mon, 19 Jul 2021 10:35:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUK1zUwVZmpIRJDWfC+mTcbbMA7bv/hM3qJza7x9x8ZnECNkGzvfUGUFVX9LYHVhbnK2Uy X-Received: by 2002:a92:b748:: with SMTP id c8mr17931792ilm.302.1626716109033; Mon, 19 Jul 2021 10:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626716109; cv=none; d=google.com; s=arc-20160816; b=I27mHICPrI62CyeRIg9B+yfQDru1MAUGLob+PC0bKPbmCpJRNRUr3uot9/SzI2hEB2 RkGsHcuhp76ktW7gnEoyw/9w8pDrLioX98oXovfWA+JnnR/w/7udTifRLNAPayvVeATR Zx+F8l/gPYQBjMIjFZqJmladhUn29CPZhl2CzoDHIdLYGjGl53P7C8/gpy+YAXaF+pQO i6TddU7Yx9HyXue901waalTsW4xnPnE5o2qNbHqM4GbHlwFitCH2S4Au9TyEGohgw7nV YJW0EDkOv98kOvaQff+h6VPdvGcS5ZIaHRsErAxZhC90VPwFOrwxx4t+5V+UHji9z3iA Lg2g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OQMiQKdWMvvIF+GQjHo1pxm4d7XSDZ+lhcQymcori7A=; b=K+sTA1k3zwMlIyVSucoj6W9LNfR8+AI8GTMGhoe/UunfrU152OfOKbJW9xXx2ej829 CEEr9i7xi/HVDdVy5riH2+Y2l2p1FIN6JebJoy0+KYSEvvPimAB0NoDcUYN47HvbFwph EuBKQydjpmU8s4nPkErjB9l0XDEfKU82ckCEBQJkB4zBUbQO4rsJzqfDmK8aLjDZWGro fR/8NdV75TqE16o4ElwkkT8Aztk5Jl8be6MhTuDYmBUOWgtJDVZo6B+j2iJFppBCkET1 qHfbl9HMcLv+FxloWPACt+ywxcNFD+QUIhH+HIyfWKswhO9H3GLWPHWKfPDF/g0drGq3 vyyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0h+4QUZA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b69si22437383jai.66.2021.07.19.10.34.56; Mon, 19 Jul 2021 10:35:09 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0h+4QUZA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352594AbhGSQuL (ORCPT + 99 others); Mon, 19 Jul 2021 12:50:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:40020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348115AbhGSPYf (ORCPT ); Mon, 19 Jul 2021 11:24:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2AA9861444; Mon, 19 Jul 2021 16:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710516; bh=0LbTZl/GtSu1ou7FYQwLRq1cIOY8xCp9qEaU6uDpBGo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0h+4QUZA4N6BCmgvcrUbu9MZidfZ4gYVeNVrA+Mi+dVb4SlLzIJnrATA5k+8+nHDc 6Y35uNsbMYkTTJSvCjd7u7XKYhlb0EuGIo5FXgZzHOrBha2SqmwncFidOF2kJhCzpk x+8xx9OtbjZVyR0HH364KG8HX/O/mAWfVFhZIgnM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chunyan Zhang , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.10 224/243] thermal/drivers/sprd: Add missing MODULE_DEVICE_TABLE Date: Mon, 19 Jul 2021 16:54:13 +0200 Message-Id: <20210719144948.153573020@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chunyan Zhang [ Upstream commit 4d57fd9aeaa013a245bf1fade81e2c30a5efd491 ] MODULE_DEVICE_TABLE is used to extract the device information out of the driver and builds a table when being compiled. If using this macro, kernel can find the driver if available when the device is plugged in, and then loads that driver and initializes the device. Fixes: 554fdbaf19b18 ("thermal: sprd: Add Spreadtrum thermal driver support") Signed-off-by: Chunyan Zhang Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210512093752.243168-1-zhang.lyra@gmail.com Signed-off-by: Sasha Levin --- drivers/thermal/sprd_thermal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/sprd_thermal.c b/drivers/thermal/sprd_thermal.c index 3682edb2f466..fe06cccf14b3 100644 --- a/drivers/thermal/sprd_thermal.c +++ b/drivers/thermal/sprd_thermal.c @@ -532,6 +532,7 @@ static const struct of_device_id sprd_thermal_of_match[] = { { .compatible = "sprd,ums512-thermal", .data = &ums512_data }, { }, }; +MODULE_DEVICE_TABLE(of, sprd_thermal_of_match); static const struct dev_pm_ops sprd_thermal_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(sprd_thm_suspend, sprd_thm_resume) -- 2.30.2