From patchwork Tue Jul 5 16:23:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 9214787 X-Patchwork-Delegate: sboyd@codeaurora.org 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 0CAA160752 for ; Tue, 5 Jul 2016 16:24:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F31172756B for ; Tue, 5 Jul 2016 16:24:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7AE3275A2; Tue, 5 Jul 2016 16:24:54 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 902492756B for ; Tue, 5 Jul 2016 16:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755491AbcGEQYx (ORCPT ); Tue, 5 Jul 2016 12:24:53 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33277 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933102AbcGEQXq (ORCPT ); Tue, 5 Jul 2016 12:23:46 -0400 Received: by mail-lf0-f67.google.com with SMTP id l188so20182847lfe.0; Tue, 05 Jul 2016 09:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1jy1nngeyv73BKEq+nCzLcsy3jBtatKJIa+DhGnU4wo=; b=rrZXNnjRFADE/KZdY3LXwf2L5HhtdzBe9BCPIjeZ6jY+wQFbFqKOg++evUafzjl5JX kuieq+ozry1dBMJXOqFRcGH8CTCTFP1DKecgix1JHDRy4ZhqmsWXmxdKaSo1vKZUCW2G GZnzRSd97K7j8NpE1TP43mZphAy5RBDHidqS9Uk2kLaxWJX1CtkDO/z92lBNtzza/PmJ GPYA9oGb7mXcHtN1n/N16BURmrZN3UhU1kjVScUQfjEJH5B3zEPwC0ziIbe5UdCWmG2R CSWJLUYo6CMaEIbrjI4LeAFPlmB32jjWLB/kQtNGt4LFyTVVY/kH82j86m57INlblGjs z22g== 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=1jy1nngeyv73BKEq+nCzLcsy3jBtatKJIa+DhGnU4wo=; b=G/m29Uufl5NtL0UPO9dqSkYiaBzGvJohZcwf1ilwvRSFpD4RbRxTA8n+Cxf1iVKKih XILG6c9J3uoBBfHUrR1T5fUrg7fJfbeYpSUvqKKP7Uf553d2AN53D4x9BaHs0hwPw6CQ TtdpXtsVNmvqFXqSPcxzRXOFo4fwwt2gqXSlVLGVM5ofSzzOveol1MpaT5tnZQp1Nu3u visPNbRUF2kogw/tnF6dIe9cl2TbHwylZEST55F7mgzagVfmZjIjGQFBz7+/ndTQDl1I Lj/QevZw41DJUval3Kjk+JS6K3YSzYVpk7lh7iwl+rsW2JZDSj80kYVJAxGBTa/+NhP6 6E1Q== X-Gm-Message-State: ALyK8tJZFw7Ukl8c29KtyeCNX/idWQ/1nOeFHZledeAl+1Nj4XAfmXFbGIU84OskxUzaiQ== X-Received: by 10.25.18.90 with SMTP id h87mr3708129lfi.183.1467735824777; Tue, 05 Jul 2016 09:23:44 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id f65sm4372660lji.10.2016.07.05.09.23.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jul 2016 09:23:43 -0700 (PDT) From: Ricardo Ribalda Delgado To: Michael Turquette , Stephen Boyd , s.hauer@pengutronix.de, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH v5 5/8] clk: sunxi: Use new macro CLK_OF_DECLARE_DRIVER Date: Tue, 5 Jul 2016 18:23:31 +0200 Message-Id: <1467735814-23518-8-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1467735814-23518-1-git-send-email-ricardo.ribalda@gmail.com> References: <1467735814-23518-1-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This driver initializes a clock provider via sun8i_a23_apb0_setup and then continues the initialization on sun8i_a23_apb0_clk_probe. Use the new macro to notify the clk subsystem about this behaviour. Signed-off-by: Ricardo Ribalda Delgado --- drivers/clk/sunxi/clk-sun8i-apb0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi/clk-sun8i-apb0.c b/drivers/clk/sunxi/clk-sun8i-apb0.c index 2ea61debffc1..b6be5d2d9440 100644 --- a/drivers/clk/sunxi/clk-sun8i-apb0.c +++ b/drivers/clk/sunxi/clk-sun8i-apb0.c @@ -82,8 +82,8 @@ err_unmap: of_address_to_resource(node, 0, &res); release_mem_region(res.start, resource_size(&res)); } -CLK_OF_DECLARE(sun8i_a23_apb0, "allwinner,sun8i-a23-apb0-clk", - sun8i_a23_apb0_setup); +CLK_OF_DECLARE_DRIVER(sun8i_a23_apb0, "allwinner,sun8i-a23-apb0-clk", + sun8i_a23_apb0_setup); static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev) {