Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756841AbbEUWRU (ORCPT ); Thu, 21 May 2015 18:17:20 -0400 Received: from mail-qg0-f54.google.com ([209.85.192.54]:34812 "EHLO mail-qg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756802AbbEUWRN (ORCPT ); Thu, 21 May 2015 18:17:13 -0400 MIME-Version: 1.0 In-Reply-To: <1432244260-14908-2-git-send-email-ezequiel.garcia@imgtec.com> References: <1432244260-14908-1-git-send-email-ezequiel.garcia@imgtec.com> <1432244260-14908-2-git-send-email-ezequiel.garcia@imgtec.com> Date: Thu, 21 May 2015 15:17:12 -0700 X-Google-Sender-Auth: gKWccoHwoq3ILABzOQVwNMRoJE4 Message-ID: Subject: Re: [PATCH 1/7] clocksource: mips-gic: Enable the clock before using it From: Andrew Bresticker To: Ezequiel Garcia Cc: "linux-kernel@vger.kernel.org" , Linux-MIPS , Daniel Lezcano , "devicetree@vger.kernel.org" , James Hartley , James Hogan , Thomas Gleixner , Damien Horsley , Govindraj Raja Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 16 On Thu, May 21, 2015 at 2:37 PM, Ezequiel Garcia wrote: > For the clock to be used (e.g. get its rate through clk_get_rate) > it should be prepared and enabled first. > > Also, while the clock is enabled the driver must hold a reference to it, > so let's remove the call to clk_put. > > Signed-off-by: Ezequiel Garcia Reviewed-by: Andrew Bresticker -- 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/