From patchwork Fri Oct 23 11:54:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 55483 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 0126A20581 for ; Fri, 23 Oct 2015 11:55:24 +0000 (UTC) Received: by wikv3 with SMTP id v3sf10108390wik.1 for ; Fri, 23 Oct 2015 04:55:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=KP0aAC5cCFPXHfDMNEbHZyhShxJbCR8r5Wub43zf3Zo=; b=IcLv0NYh58+ax1efi2umwJbSELEoYPq9Ewg/8qylyYMMVOsZXRD9GnX8jnCPdgW4Qi Iwuw2jXAlfL7J53YbIjX8QANXMhzUon/KYF1lo6m5NnpIOvU9wwm/Ggi0gfdTkeCOB0b 5IlO+d7YkdF3hrI/AZpVOoYDIr9/r7g/PUsupntPo9+jutVSLSJ/l9R/IcdjQ2gdputA N1I3Sz+8YEl4jNVvtFInwDeMkh6ycngCVukmmH0pzGVv39G9l5Q4wdKhIkoWkKj6vllI 0XAsX9Mx3sAjF6SQqXhQ5tLnW1WjVK8qBW5fQVBkF2EOHmuZynCMdfVmXWEUYy4rsDKO OFWA== X-Gm-Message-State: ALoCoQkg7hZUoROsMdmW2CFI8KtOwd6Gu59kaolkcIakgmbZRdctt+yYCn8I9imYnsxIYdoHVDiu X-Received: by 10.112.184.170 with SMTP id ev10mr4867968lbc.4.1445601323313; Fri, 23 Oct 2015 04:55:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.170.130 with SMTP id t124ls432367lfe.7.gmail; Fri, 23 Oct 2015 04:55:23 -0700 (PDT) X-Received: by 10.112.204.101 with SMTP id kx5mr11007011lbc.93.1445601323137; Fri, 23 Oct 2015 04:55:23 -0700 (PDT) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id 39si12454114lft.44.2015.10.23.04.55.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 04:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lfaz124 with SMTP id z124so80726578lfa.1 for ; Fri, 23 Oct 2015 04:55:23 -0700 (PDT) X-Received: by 10.112.199.137 with SMTP id jk9mr11028191lbc.86.1445601322878; Fri, 23 Oct 2015 04:55:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1178399lbq; Fri, 23 Oct 2015 04:55:22 -0700 (PDT) X-Received: by 10.107.12.18 with SMTP id w18mr24661836ioi.131.1445601321927; Fri, 23 Oct 2015 04:55:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si2928537iga.79.2015.10.23.04.55.21; Fri, 23 Oct 2015 04:55:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbbJWLzO (ORCPT + 28 others); Fri, 23 Oct 2015 07:55:14 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35190 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977AbbJWLzL (ORCPT ); Fri, 23 Oct 2015 07:55:11 -0400 Received: by wicll6 with SMTP id ll6so27910627wic.0 for ; Fri, 23 Oct 2015 04:55:10 -0700 (PDT) X-Received: by 10.180.107.67 with SMTP id ha3mr3865587wib.61.1445601310122; Fri, 23 Oct 2015 04:55:10 -0700 (PDT) Received: from mai.telefonica.net (185.Red-213-96-199.staticIP.rima-tde.net. [213.96.199.185]) by smtp.gmail.com with ESMTPSA id w9sm816222wjf.20.2015.10.23.04.55.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Oct 2015 04:55:09 -0700 (PDT) From: Daniel Lezcano To: rjw@rjwysocki.net Cc: Russell King , linux-pm@vger.kernel.org (open list:CPUIDLE DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] cpuidle: mvebu: disable the bind/unbind attributes and use builtin_platform_driver Date: Fri, 23 Oct 2015 13:54:58 +0200 Message-Id: <1445601298-31138-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445601298-31138-1-git-send-email-daniel.lezcano@linaro.org> References: <562A1FE0.1060302@linaro.org> <1445601298-31138-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Russell King As the driver doesn't support unbinding, nor does it support arbitary binding of devices, disable the bind/unbind attributes for this driver. Also, as the driver has no remove function, it can never be modular, so use builtin_platform_driver() to avoid the module exit boilerplate. Signed-off-by: Russell King Signed-off-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-mvebu-v7.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-mvebu-v7.c b/drivers/cpuidle/cpuidle-mvebu-v7.c index facd7d3..01a8569 100644 --- a/drivers/cpuidle/cpuidle-mvebu-v7.c +++ b/drivers/cpuidle/cpuidle-mvebu-v7.c @@ -127,11 +127,12 @@ static struct platform_driver mvebu_cpuidle_driver = { .probe = mvebu_v7_cpuidle_probe, .driver = { .name = "cpuidle-mbevu", + .suppress_bind_attrs = true, }, .id_table = mvebu_cpuidle_ids, }; -module_platform_driver(mvebu_cpuidle_driver); +builtin_platform_driver(mvebu_cpuidle_driver); MODULE_AUTHOR("Gregory CLEMENT "); MODULE_DESCRIPTION("Marvell EBU v7 cpuidle driver");