Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1726070
| From | Sudeep Holla <sudeep.holla@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 15/18] clk: add support for clocks provided by SCMI |
| Date | 2017-09-04 15:40 +0200 |
| Message-ID | <ulZLA-64y-19@gated-at.bofh.it> (permalink) |
| References | <uaLVD-8da-5@gated-at.bofh.it> <uaLVE-8da-35@gated-at.bofh.it> <ukHQJ-4sw-1@gated-at.bofh.it> |
| Organization | ARM |
On 01/09/17 01:19, Stephen Boyd wrote:
> On 08/04, Sudeep Holla wrote:
>> diff --git a/drivers/clk/clk-scmi.c b/drivers/clk/clk-scmi.c
>> new file mode 100644
>> index 000000000000..37f98a6439a0
>> --- /dev/null
>> +++ b/drivers/clk/clk-scmi.c
[...]
>> +static int scmi_clocks_probe(struct platform_device *pdev)
>> +{
>> + struct device *dev = &pdev->dev;
>> + struct device_node *np = dev->of_node;
>> + const struct scmi_handle *handle = devm_scmi_handle_get(dev);
>> +
>> + if (IS_ERR_OR_NULL(handle) || !handle->clk_ops)
>> + return -EPROBE_DEFER;
>> +
>> + return scmi_clk_add(dev, np, handle);
>
> Why the function? We support more than just platform devices?
> Just fold scmi_clk_add() into this function instead please.
>
All valid points. Fixed locally now, will post as part of next posting
of the series.
--
Regards,
Sudeep
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v2 15/18] clk: add support for clocks provided by SCMI Stephen Boyd <sboyd@codeaurora.org> - 2017-09-01 02:20 +0200 Re: [PATCH v2 15/18] clk: add support for clocks provided by SCMI Sudeep Holla <sudeep.holla@arm.com> - 2017-09-04 15:40 +0200
csiph-web