From patchwork Sun Oct 4 05:22:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 51578 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n945N6ZI019240 for ; Sun, 4 Oct 2009 05:23:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750882AbZJDFWo (ORCPT ); Sun, 4 Oct 2009 01:22:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751265AbZJDFWo (ORCPT ); Sun, 4 Oct 2009 01:22:44 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:45547 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbZJDFWo (ORCPT ); Sun, 4 Oct 2009 01:22:44 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 17531678B8; Sun, 4 Oct 2009 05:22:04 +0000 (UTC) From: Mike Frysinger To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, uclinux-dist-devel@blackfin.uclinux.org, Michael Hennerich Subject: [PATCH] Input: ad7879: pass up error codes from probe functions Date: Sun, 4 Oct 2009 01:22:05 -0400 Message-Id: <1254633725-20479-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.6.5.rc2 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/touchscreen/ad7879.c b/drivers/input/touchscreen/ad7879.c index f06332c..c21e6d3 100644 --- a/drivers/input/touchscreen/ad7879.c +++ b/drivers/input/touchscreen/ad7879.c @@ -645,7 +645,7 @@ static int __devinit ad7879_probe(struct spi_device *spi) kfree(ts); } - return 0; + return error; } static int __devexit ad7879_remove(struct spi_device *spi) @@ -732,7 +732,7 @@ static int __devinit ad7879_probe(struct i2c_client *client, kfree(ts); } - return 0; + return error; } static int __devexit ad7879_remove(struct i2c_client *client)