Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755749AbXIZJqv (ORCPT ); Wed, 26 Sep 2007 05:46:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754460AbXIZJqn (ORCPT ); Wed, 26 Sep 2007 05:46:43 -0400 Received: from mtagate7.de.ibm.com ([195.212.29.156]:4439 "EHLO mtagate7.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754310AbXIZJqm (ORCPT ); Wed, 26 Sep 2007 05:46:42 -0400 From: Joachim Fenkes To: Paul Mackerras , "LinuxPPC-Dev" , LKML , Arnd Bergmann Subject: [PATCH 5/5] ibmebus: More speaking error return code in ibmebus_store_probe() User-Agent: KMail/1.8.2 Cc: Christoph Raisch , "Hoang-Nam Nguyen" , "Jan-Bernd Themann" , Stefan Roscher , Thomas Klein , Paul Mackerras References: <200709261143.24735.fenkes@de.ibm.com> In-Reply-To: <200709261143.24735.fenkes@de.ibm.com> MIME-Version: 1.0 Content-Disposition: inline X-Length: 8283 Date: Wed, 26 Sep 2007 11:46:34 +0200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200709261146.35466.fenkes@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 31 Signed-off-by: Joachim Fenkes --- arch/powerpc/kernel/ibmebus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c index c1e2963..0bd186c 100644 --- a/arch/powerpc/kernel/ibmebus.c +++ b/arch/powerpc/kernel/ibmebus.c @@ -268,10 +268,10 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, return -ENOMEM; if (bus_find_device(&ibmebus_bus_type, NULL, path, - ibmebus_match_path)) { + ibmebus_match_path)) { printk(KERN_WARNING "%s: %s has already been probed\n", __FUNCTION__, path); - rc = -EINVAL; + rc = -EEXIST; goto out; } -- 1.5.2 - 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/