From patchwork Fri May 5 08:00:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9713133 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B752D60362 for ; Fri, 5 May 2017 08:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2FC1269E2 for ; Fri, 5 May 2017 08:01:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 977B2286A8; Fri, 5 May 2017 08:01:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42111269E2 for ; Fri, 5 May 2017 08:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=EpM8WVV/IbtBMGhMOvw9USy068xbIkVpDIOpVb7FSCI=; b=Dy2 R/Wijl+m0ipszgMiy5jsUA3EMohOB1a4qKrS9dUPVXuKCKCKsmiPMBWLHvbMoEREhUYpbQwum+LB+ wPnryic/O8vJHBOfVE4Z2/ezlYn9eW8TlcuLy39KUZWFx7iFF5Tezx/OmNGowJQoc0JHh6sXbtdw4 TxRiK23cYt52OVNNMYJnTBE39Gjk72AYKyNtaDNTJUmWw1+dplp2/vlg+EoaogAHv+4F9qtwgnlRF qYAH0Ghr0F15RtjHDH9VUBxSfZ4g5ReKHeu0wkpwGHjN81WU+GcB/uzNsYCAJcC8eibGXMMDnnfPZ 3JqJUlLlPzUBjZL2ldMc9QRrrGFw2HQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d6YBK-0001sw-Cr; Fri, 05 May 2017 08:01:42 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d6YBH-0001h5-6G for linux-arm-kernel@lists.infradead.org; Fri, 05 May 2017 08:01:40 +0000 Received: by mail-pg0-x243.google.com with SMTP id 12so1399231pgc.3 for ; Fri, 05 May 2017 01:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Bz20X5BQJZg/CLq54G77liGaCvD5uDwejLRKJn0/WwI=; b=IMUYzSnjIAHeiMq70GW8KHqueyUkV+jxlhsqz8QEwNTAgR7Fu3fwkjgqvOZdpsg5o5 0yLpJ9Eq20XUFJJIJM+k8IjGVOh1GpsUpowH0/Mv6OtmZRn0iZICWK1BthE8DhsYNDJZ hCrYXmWGpE5GCs8NvO8nOnO/EtQDVDciUwvM+HC6xYrsAguYQ/gyYLOlXGlZVIgzWh3t oYSH/RrkvYK68RwhtAZYkKHFEiEJ3AjeR3gJCUSQzmoyI0H5pgVhBTATuCXNAM6D1UyY yqHwsOefRHv4lXN23tI/H3B3WIOvuRNxwkwE+eKY3bf+NmK6aYxHHfT3PLdnRAGE5GES 2P+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Bz20X5BQJZg/CLq54G77liGaCvD5uDwejLRKJn0/WwI=; b=clatK8ssOEC5bIE0/bzG/XDSQaPiBC8eGsRr191X1eY1j++Tnk5jyGpN+U8u+3ZlJo Ol0KLf27LKJjXDF8yk3Ownyoj45DbVWHYA1n/PRCqT6wQWwHUX0WV4odRQzhJ2cwUeeF L0eowTpcufgmmh0nk4lLVojMZ8a2U+38w97RELTO0EGJRSm2FtzqGBJRr6FGHgU+7hsq bVz/vC+VHO0dUDhxL9w3ukV2tn0Yi6DDoTWCVtSwC8j6KyZmEudcvGojQWMNTxkpJmPK RiBXQe4m8Om9Vzo9dU13hTfQOT8bp0bCxzEEqVQSpIvqQKaM59qM04EYv9mfE0261U/M rdSg== X-Gm-Message-State: AN3rC/5XCESane2x6ci9ZeoZ1glzB+yayoVty4sqqWFjylUmd4QnR0wi 0qNivxOfk7RrpyP4 X-Received: by 10.98.73.214 with SMTP id r83mr15570472pfi.253.1493971277718; Fri, 05 May 2017 01:01:17 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id g5sm2912541pgn.38.2017.05.05.01.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 May 2017 01:01:17 -0700 (PDT) From: Arvind Yadav To: linux@prisktech.co.nz, thierry.reding@gmail.com Subject: [PATCH v1] pwm : pwm-vt8500 - Undo preparation of a clock source. Date: Fri, 5 May 2017 13:30:14 +0530 Message-Id: <1493971214-3763-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170505_010139_274183_033D6D52 X-CRM114-Status: GOOD ( 10.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Undo preparation of a clock source, if vt8500_pwm_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/pwm/pwm-vt8500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c index 8141a49..3a78dd0 100644 --- a/drivers/pwm/pwm-vt8500.c +++ b/drivers/pwm/pwm-vt8500.c @@ -241,6 +241,7 @@ static int vt8500_pwm_probe(struct platform_device *pdev) ret = pwmchip_add(&chip->chip); if (ret < 0) { dev_err(&pdev->dev, "failed to add PWM chip\n"); + clk_unprepare(chip->clk); return ret; }