From patchwork Fri Oct 14 18:00:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Prakash, Prashanth" X-Patchwork-Id: 9377217 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3D4FB60779 for ; Fri, 14 Oct 2016 18:00:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 288132A743 for ; Fri, 14 Oct 2016 18:00:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 078DD2A7C3; Fri, 14 Oct 2016 18:00:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CB7C2A743 for ; Fri, 14 Oct 2016 18:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751521AbcJNSAq (ORCPT ); Fri, 14 Oct 2016 14:00:46 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48370 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbcJNSAq (ORCPT ); Fri, 14 Oct 2016 14:00:46 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4AE4A611D2; Fri, 14 Oct 2016 18:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476468045; bh=NWPodYfXmSeaZDFq+rtVlTd4Fdkp0q7T85wNN7dA8QQ=; h=From:To:Cc:Subject:Date:From; b=FntJjhKDeMe/U+F9Hg3ZN+3zrDGE4t3McrmkknjiCHQcGLNmzHW6K1V9j2Is2TIBz hgwv6gSZ3gvPN6Kd2fyeg/keLOasfr8w2db3jMPQlfq4CydRPbluOaailOb/i3rKn7 MWQB6EXNP+viJy1mxEg3UDzwSHYGHX/2r5OrOXIg= Received: from pprakash-lnx.qualcomm.com (unknown [129.46.15.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pprakash@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 452D7611D2; Fri, 14 Oct 2016 18:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476468044; bh=NWPodYfXmSeaZDFq+rtVlTd4Fdkp0q7T85wNN7dA8QQ=; h=From:To:Cc:Subject:Date:From; b=NvNhfJMXwf14hDRiMQwfsX4zLEpDGGPpxW0vrchechaB+8yrSWW+Xotgs7KzpAJoC Gs0Q9GO+XQlqYnbGN2WKwkVsejM3K89+hQjqZtckA99X/Vq1qiXXNtegvGiFqbBIRQ TP7f13d+Denx6iL9rCciHZmHHSlffm7opTJM+NxA= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 452D7611D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=pprakash@codeaurora.org From: Prashanth Prakash To: linux-pm@vger.kernel.org Cc: "Rafael J. Wysocki" , Hoan Tran , Christopher Covington , Al Stone , Prashanth Prakash Subject: [PATCH] cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver Date: Fri, 14 Oct 2016 12:00:23 -0600 Message-Id: <1476468023-6917-1-git-send-email-pprakash@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP MODULE_DEVICE_TABLE is added so that CPPC cpufreq module can be automatically loaded when we have a acpi processor device with "ACPI0007" hid. Signed-off-by: Prashanth Prakash --- drivers/cpufreq/cppc_cpufreq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 4852d9e..e82bb3c 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -247,3 +247,10 @@ MODULE_DESCRIPTION("CPUFreq driver based on the ACPI CPPC v5.0+ spec"); MODULE_LICENSE("GPL"); late_initcall(cppc_cpufreq_init); + +static const struct acpi_device_id cppc_acpi_ids[] = { + {ACPI_PROCESSOR_DEVICE_HID, }, + {} +}; + +MODULE_DEVICE_TABLE(acpi, cppc_acpi_ids);