From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752578AbbB1WKa (ORCPT ); Sat, 28 Feb 2015 17:10:30 -0500 Received: from mail-ig0-f174.google.com ([209.85.213.174]:42588 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486AbbB1WK2 (ORCPT ); Sat, 28 Feb 2015 17:10:28 -0500 Date: Sat, 28 Feb 2015 14:10:22 -0800 From: Dmitry Torokhov To: Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , Ray Jui , Jonathan Richardson , Dmitry Torokhov , Anatol Pomazao , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] Input: bcm-keypad: Add Broadcom keypad controller Message-ID: <20150228221022.GA36282@dtor-ws> References: <1425141357-7807-1-git-send-email-sbranden@broadcom.com> <1425141357-7807-3-git-send-email-sbranden@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425141357-7807-3-git-send-email-sbranden@broadcom.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Scott, On Sat, Feb 28, 2015 at 08:35:57AM -0800, Scott Branden wrote: > + /* Enable clock */ > + > + kp->clk = devm_clk_get(&pdev->dev, "peri_clk"); > + if (IS_ERR(kp->clk)) { > + dev_info(&pdev->dev, > + "No clock specified. Assuming it's enabled\n"); I was doing the final pass before applying and I think that this is not quite correct, as it does not handle -EPROBE_DEFER properly which is quite common. I think we should do something like this: error = PTR_ERR(kp->clk); if (error != -ENOENT) { if (error != -EPROBE_DEFER) dev_err(.. "Failed to get clock" ...); return error; } dev_dbg(... "No clock specified" ...); No need to resubmit if you are OK with this, I can make the change locally. > + } > + else { Checkpach should have warned you that it should have been "} else {"; I'll fix it up locally along with few other cosmetic changes and dropping a few extra headers. Thanks. -- Dmitry