From patchwork Wed Feb 26 23:09:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit Cousson X-Patchwork-Id: 3728891 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 311C09F2ED for ; Wed, 26 Feb 2014 23:11:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 590952020E for ; Wed, 26 Feb 2014 23:11:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A4642020F for ; Wed, 26 Feb 2014 23:11:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751978AbaBZXL3 (ORCPT ); Wed, 26 Feb 2014 18:11:29 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:49458 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751912AbaBZXL2 (ORCPT ); Wed, 26 Feb 2014 18:11:28 -0500 Received: by mail-we0-f173.google.com with SMTP id x48so2222578wes.18 for ; Wed, 26 Feb 2014 15:11:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jSONY1n5npnRyE364z8HCk3C/2MUG8HE6E/eB/Hzpgk=; b=FbwfX9P5cBiAHAldSTY2s9nxX6eZMki0rq6ZIqCV+pBbz+Z0+3nt6OurgTmKpGdZAI Y7RJfAMa10tyPWBHU7E/+PyPNlXCmS6bsNcmJjE2a0g6ZktruTgXhlBPG14KMm5iJpIu so+Qu3WxcaDzfajPp2D4LE5zugPMwyfzlrdlvF4IoFsULua1TL8hN3IfYLGuXqatIAJw vHkh77mJH5aevAkVWIcL8xXLPMcKZtcD8MpGkMdBjIHKqk7+KjUvJG6Rd1a4rYMtX4WD vvtsSDJWE5KSU58NmJUoVXKAO2Ubr2Gqv+c2BD8Ud1xj2IEwXTabr0bc2XMN3RRFndnj w2Bw== X-Gm-Message-State: ALoCoQnBmyCx53LEUqRc1IoOgT7viqDFbWKyAwYjaNE/fWXCOMAHVx3kS+szIlBinNVp0P5Apbjs X-Received: by 10.180.25.46 with SMTP id z14mr9957156wif.49.1393456287853; Wed, 26 Feb 2014 15:11:27 -0800 (PST) Received: from localhost.localdomain (lau06-1-82-228-246-9.fbx.proxad.net. [82.228.246.9]) by mx.google.com with ESMTPSA id br10sm6203145wjb.3.2014.02.26.15.11.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 15:11:27 -0800 (PST) From: Benoit Cousson To: magnus.damm@gmail.com Cc: laurent.pinchart@ideasonboard.com, linux-sh@vger.kernel.org, ptitiano@baylibre.com, Benoit Cousson , Benoit Cousson Subject: [RFC 3/4] ARM: shmobile: lager-reference: Add cpufreq-cpu0 device for CPUFreq support Date: Thu, 27 Feb 2014 00:09:49 +0100 Message-Id: <1393456190-7870-4-git-send-email-bcousson@baylibre.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393456190-7870-1-git-send-email-bcousson@baylibre.com> References: <1393456190-7870-1-git-send-email-bcousson@baylibre.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Statically create a cpufreq-cpu0 device during machine init to allow the cpufreq-cpu0 driver to be bound to this device. Since this device is a fake one, it cannot be created by devicetree devices population. Signed-off-by: Benoit Cousson --- arch/arm/mach-shmobile/board-lager-reference.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-shmobile/board-lager-reference.c b/arch/arm/mach-shmobile/board-lager-reference.c index 440aac3..bedc5c3 100644 --- a/arch/arm/mach-shmobile/board-lager-reference.c +++ b/arch/arm/mach-shmobile/board-lager-reference.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -130,6 +131,8 @@ static void __init lager_add_standard_devices(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); lager_add_du_device(); + + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); } static const char *lager_boards_compat_dt[] __initdata = {