From patchwork Fri Feb 11 08:51:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 548911 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1B8n8Zt030562 for ; Fri, 11 Feb 2011 08:49:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753662Ab1BKItH (ORCPT ); Fri, 11 Feb 2011 03:49:07 -0500 Received: from mail-yw0-f46.google.com ([209.85.213.46]:61372 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753646Ab1BKItG (ORCPT ); Fri, 11 Feb 2011 03:49:06 -0500 Received: by ywo7 with SMTP id 7so971847ywo.19 for ; Fri, 11 Feb 2011 00:49:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=RPOmyfpnZ1PAT6X2nBvZpluXTcVFlu5ehDvFteefB/M=; b=bjHAvU5ulyi1WZ+21E77wncVVB5rXXOkXp3vHnWgBc1FYWlX+nTUnR9aqLwH4cJ2MR VsnPTw+RK1fYkEdLXlnpJZ6pv/QRakZLEWytDCvhinCkRDryhZnBX+KDQ/0MC9MdT41G 16+oImwTig59BqidfNr76dcj4+6JHWPizeHs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=K5rbY7iKaBgV/Rifo5wvaFkzshXB95XYD8IvpIJQ8tHb6A7rCyoaMLA0wxy8H8kFHZ Z2oucguJ9oET4zQiVy4s8deuqFcQnrsFidY6wtgiwg9WVmCcbBmhtrxxloGJII7cCK+b rCnACN8tckIBdA2YQwgxFndeN1HpYcmr4aEAM= Received: by 10.151.3.3 with SMTP id f3mr199006ybi.448.1297414145108; Fri, 11 Feb 2011 00:49:05 -0800 (PST) Received: from [192.168.100.50] (60-251-136-127.HINET-IP.hinet.net [60.251.136.127]) by mx.google.com with ESMTPS id r41sm441110yba.4.2011.02.11.00.49.01 (version=SSLv3 cipher=OTHER); Fri, 11 Feb 2011 00:49:04 -0800 (PST) Subject: [PATCH] video: s3c-fb: return proper error if clk_get fails From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Kyungmin Park , Ben Dooks , Paul Mundt , linux-fbdev@vger.kernel.org Date: Fri, 11 Feb 2011 16:51:10 +0800 Message-Id: <1297414270.14046.1.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 11 Feb 2011 08:49:21 +0000 (UTC) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 83ce9a0..6817d18 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1340,6 +1340,7 @@ static int __devinit s3c_fb_probe(struct platform_device *pdev) sfb->bus_clk = clk_get(dev, "lcd"); if (IS_ERR(sfb->bus_clk)) { dev_err(dev, "failed to get bus clock\n"); + ret = PTR_ERR(sfb->bus_clk); goto err_sfb; }