From patchwork Wed Jan 18 15:08:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 45322 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2390281wrn; Wed, 18 Jan 2023 07:11:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoTcqAukDovJMrD+gnIcv+pq9I4+wl39jhZO5/mgt2EU9+IrYeiNbYDIKqEYpbxToyowpX X-Received: by 2002:a17:903:2105:b0:189:e7ea:9ff9 with SMTP id o5-20020a170903210500b00189e7ea9ff9mr7168723ple.42.1674054673577; Wed, 18 Jan 2023 07:11:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674054673; cv=none; d=google.com; s=arc-20160816; b=VICPG/miDs/u4MHiMDL8KjauChly0+8gQt1GA3bwOO6vat/TFTZ4YgNREdQkIsknSe oZBtoe6jgAqfX0d9SyJ9sXs6ICDBv7424gODfDrm2STuNbAdDxuT75r+NVPSF39fEkPt GKLWeRU6GvMmmNBD8p2I7TxbOS/XjKnnHX0ZDneENIDNDGxvbFg1OFetXTvhtLVOPiNv eBU/7vU4nGLT0cu57LsjaSwPYkymfPs51BYS3kZNGLgI/M+333J6QPhJje+iQXf0TI/N GIrR5ILHcc7R072yiUOi8mEp0O3FQI+9cSqzYAoPkS0CQbEbqgFoMpCttN0RdDJVeNPL R19Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eHz9zYD5zWjkD8amepkm4Ag4nZgnemTquTNMqE0/uHs=; b=YsCy0wgJqanikP/RvsVKsmUwizxAALHu7JMr3/qv1oM9fOTfFVfkRNhlyGPx2dwTAi cm3lfgo79+DVxQePb5oMs1lABBiktZHTMmijxWooYRXBHyOGkIyGhs1P/u0Kr8vFQHxz DV+QsyqI5BQFdsAUYD07h6CUGlMMYJc4WGeka6oocRiqer6M9ZQ3YPxrHg2WN19hAE96 8NqDgrHzlQ25IkFpYy08pY854ilOS+GtbV2na3rJI9WhLKYQ06rQyqExorCQliQLx/I+ gvG9kUfw8QaWcUPhcdTLra6TFi7ahjow11IBgGUR8FnjhUpWh+VrWnvgZJkwQ7DGOjCQ KuOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DvG3z0Pr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a63e402000000b004a2f26de947si36732738pgi.224.2023.01.18.07.10.58; Wed, 18 Jan 2023 07:11:13 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=DvG3z0Pr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231664AbjARPJw (ORCPT + 99 others); Wed, 18 Jan 2023 10:09:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbjARPJ0 (ORCPT ); Wed, 18 Jan 2023 10:09:26 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C2022787 for ; Wed, 18 Jan 2023 07:09:25 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id 7-20020a17090a098700b002298931e366so2444144pjo.2 for ; Wed, 18 Jan 2023 07:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eHz9zYD5zWjkD8amepkm4Ag4nZgnemTquTNMqE0/uHs=; b=DvG3z0PrAX2OmF7qqZN7PGoPsDNVuUNEI89aLDn1NF6d2o/5baohFax/eWhIeKqpq/ rbamm9+n0b/lpy1CBkAHAQs9Y8CbUVh34qJ6ryAiaIS+9m8FK9gzF+ypTeZ+b5JA3AlR awuLOsJhyBz/YZONOdEjdutlhnPoPKuEvE4NXH5RGlczUSYubhqTQm3O+H6Oq+r2dyKa iXEf8yQwXNnUPAtQKc7H6yYeY7Gtqlg+IPTi4SRdwGWhdotAL6SyKP7HOOYG2hCVLFWt d/qS8Jey0FQrmC53p8IIaj1bTRHkYtxjbWsmAPo2pb3j/B948f3fqVOJmRBxK860CJ6g 744A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eHz9zYD5zWjkD8amepkm4Ag4nZgnemTquTNMqE0/uHs=; b=hIJ0uTqdE1FiuDMMdFfyBrszZ4VjCe0jmkHvY+ar6u0hzwxYKKORsz5NspbvqH0AdM IOnMv4tHgz0v03DQ+/5nU6KhdcPSRT4cJiPgTHZPWR1W3i6jfpu3rSUO2VBgtryycfEq H6mEo7qpcMlsEUCcVdQv0SkGuZfrp31ViAqKk9OyJPE92XDDTw3U+lse81tJLgwJVb3u mU1NLK95YVFjc3ntDZTbQzifUuoup88WzJy/VHr/rcUpu1Zykit1Za6f2kKlgSISxec9 Ot6mLZ2Siuc7Kmp5fHlZBNikq+BFo/3Z0zHrHFIljVIiaEXYZ38Yk0/pZTW+vSfWa2ZM O22w== X-Gm-Message-State: AFqh2kq1MPwDZ+e+S/LX62eSvanqluPfuS9v1CRc8KCRI0FrUBW4g1qE PxwGggHmqkHo1d9yXApdrayk X-Received: by 2002:a05:6a20:7a89:b0:a2:c45f:f0fc with SMTP id u9-20020a056a207a8900b000a2c45ff0fcmr7563618pzh.27.1674054564865; Wed, 18 Jan 2023 07:09:24 -0800 (PST) Received: from localhost.localdomain ([27.111.75.61]) by smtp.gmail.com with ESMTPSA id i15-20020aa796ef000000b0058d9623e7f1sm6721544pfq.73.2023.01.18.07.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 07:09:24 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, bp@alien8.de, tony.luck@intel.com Cc: quic_saipraka@quicinc.com, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, james.morse@arm.com, mchehab@kernel.org, rric@kernel.org, linux-edac@vger.kernel.org, quic_ppareek@quicinc.com, luca.weiss@fairphone.com, ahalaney@redhat.com, steev@kali.org, Manivannan Sadhasivam Subject: [PATCH v6 02/17] EDAC/qcom: Add platform_device_id table for module autoloading Date: Wed, 18 Jan 2023 20:38:49 +0530 Message-Id: <20230118150904.26913-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230118150904.26913-1-manivannan.sadhasivam@linaro.org> References: <20230118150904.26913-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755373553633640932?= X-GMAIL-MSGID: =?utf-8?q?1755373553633640932?= Add a device ID table so that the driver loads automatically when the associated platform_device gets registered. Tested-by: Steev Klimaszewski # Thinkpad X13s Tested-by: Andrew Halaney # sa8540p-ride Reported-by: Andrew Halaney Signed-off-by: Manivannan Sadhasivam --- drivers/edac/qcom_edac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/edac/qcom_edac.c b/drivers/edac/qcom_edac.c index 97a27e42dd61..9e77fa84e84f 100644 --- a/drivers/edac/qcom_edac.c +++ b/drivers/edac/qcom_edac.c @@ -397,12 +397,19 @@ static int qcom_llcc_edac_remove(struct platform_device *pdev) return 0; } +static const struct platform_device_id qcom_llcc_edac_id_table[] = { + { .name = "qcom_llcc_edac" }, + {} +}; +MODULE_DEVICE_TABLE(platform, qcom_llcc_edac_id_table); + static struct platform_driver qcom_llcc_edac_driver = { .probe = qcom_llcc_edac_probe, .remove = qcom_llcc_edac_remove, .driver = { .name = "qcom_llcc_edac", }, + .id_table = qcom_llcc_edac_id_table, }; module_platform_driver(qcom_llcc_edac_driver);