Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5090734imu; Tue, 25 Dec 2018 17:42:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5O0tUKwFMiSwxOqJkjK0w1CuJw2aKG/ZKnyPVIR29xsuFbhLoNWoYQ+1Xi9+tWOW3DsjEa X-Received: by 2002:a63:bf0b:: with SMTP id v11mr17592843pgf.302.1545788547412; Tue, 25 Dec 2018 17:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545788547; cv=none; d=google.com; s=arc-20160816; b=0CU9FddcC3qznzKZgj3Uhjl0CLJwy5wC4YjmgjDYpFez9LqBwPonNUyAw7zuXzPoER xwS1kKrXXG5YJyFLKzL5QxpVOMqm/2lbyHV+0MZSppYJ6CoabL43wqbydkipAnOXcOXD yw0yqOdxodgiQhw6+OoGbkN9nx5IaUxCEpr83baDbXA3zmkuHPob5OhGnUm5I9MRtJ1G Lb07XpgSmEQs44lWM19KO1KtYEnmzz0tZJh6L19bBzm/xumEV5pdGRFErK/c8+mCgfln wjgo7gFfJKD3kGhOctfbJ/yq+pSMeDySS8E74/jhSBKzwBFMKosxManqKVp2b/lrc+l2 vAAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Q8TvPKeOMvQvGOY3Ld4B8JFzTUj8jh2iS+8VxNqzFP8=; b=UbFA6IS33hQpQWd68xI3DwokZgkLUyv7xC8WM8GNRMvUVxj6IK/jgPvX10BSMlGly7 eEo8ve7sEEwQWhBjSJdLvaygHOUhgLW/i6tO/nbz+7vbbJdz3vjVKgImBfb/ucqW+ldR 6IKXG5hz98RROqr8Qza+niFp2Z7YS8oOhSiqmQidnv4y6QD94t8Ttls66T5KuTgsaVOB U6MUcnPfC3SweA8pXUZz+7LTWFlSTnRhopve/CnJV2skI3otb55FaPDvmAV5JO0jJsPQ xtlhP1MEfIhkoXlg/Us1mRVv85RK852FCBxGyZ7nMLez+cllOSaZ0/kD5V0AAMgSCSMy S6mQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si31706587pfn.285.2018.12.25.17.42.11; Tue, 25 Dec 2018 17:42:27 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726053AbeLZBfb (ORCPT + 99 others); Tue, 25 Dec 2018 20:35:31 -0500 Received: from mx.socionext.com ([202.248.49.38]:35506 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbeLZBfb (ORCPT ); Tue, 25 Dec 2018 20:35:31 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 26 Dec 2018 10:35:29 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 71B3C1800F6; Wed, 26 Dec 2018 10:35:29 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Wed, 26 Dec 2018 10:35:29 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id C5FE740370; Wed, 26 Dec 2018 10:35:28 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id A3C9A1205A0; Wed, 26 Dec 2018 10:35:28 +0900 (JST) Subject: Re: [PATCH 07/14] clock: milbeaut: Add Milbeaut M10V clock control To: Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Michael Turquette , Rob Herring , Mark Rutland , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Russell King , Jiri Slaby , Masami Hiramatsu , Jassi Brar References: <1542589274-13878-1-git-send-email-sugaya.taichi@socionext.com> <1542589274-13878-8-git-send-email-sugaya.taichi@socionext.com> <154356669840.88331.4455990896653868594@swboyd.mtv.corp.google.com> From: "Sugaya, Taichi" Message-ID: <9fba4689-b20f-c18a-ea11-d961de497ea3@socionext.com> Date: Wed, 26 Dec 2018 10:35:27 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <154356669840.88331.4455990896653868594@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 2018/11/30 17:31, Stephen Boyd wrote: >> + init.num_parents = parents; >> + init.parent_names = parent_names; >> + >> + mcm->cname = clk_name; >> + mcm->parent = 0; >> + mcm->hw.init = &init; >> + >> + clk = clk_register(NULL, &mcm->hw); >> + if (IS_ERR(clk)) >> + goto err_clk; >> + >> + of_clk_add_provider(node, of_clk_src_simple_get, clk); >> + return; >> + >> +err_clk: >> + kfree(mcm); >> +err_mcm: >> + kfree(parent_names); >> +} >> +CLK_OF_DECLARE(m10v_clk_mux, "socionext,milbeaut-m10v-clk-mux", >> + m10v_clk_mux_setup); > > Any chance you can use a platform driver? > Excuse me to re-ask you. Why do you recommend to use a platform driver? Is that current fad? Thanks Sugaya Taichi