Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949AbbD3UqY (ORCPT ); Thu, 30 Apr 2015 16:46:24 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:35645 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbbD3UqW (ORCPT ); Thu, 30 Apr 2015 16:46:22 -0400 Message-ID: <55429497.6030409@gmail.com> Date: Thu, 30 Apr 2015 22:46:15 +0200 From: Sebastian Hesselbarth User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Fabio Estevam CC: Michael Welling , Jean-Francois Moine , Mike Turquette , Stephen Boyd , linux-kernel , Russell King , linux-clk@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 3/4] clk: si5351: Do not pass struct clk in platform_data References: <1430415954-29517-1-git-send-email-sebastian.hesselbarth@gmail.com> <1430415954-29517-4-git-send-email-sebastian.hesselbarth@gmail.com> <20150430183043.GA21890@deathray> <554277F3.7060500@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 23 On 30.04.2015 21:16, Fabio Estevam wrote: > On Thu, Apr 30, 2015 at 3:44 PM, Sebastian Hesselbarth > wrote: >> Michael is right, the check is for bailing out if none of the parent >> clocks is available. > > + if (IS_ERR(drvdata->pxtal) && IS_ERR(drvdata->pclkin)) { > + dev_err(&client->dev, "missing at least one parent clock\n"); > + return -EINVAL; > + } > > Then shouldn't the error message be: "missing both parent clocks\n" ? Yeah, probably. I'll reword the error message and also check the variant as only 5351C can have a "clkin" parent clock. Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/