From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from penguin.netx4.com (embeddededge.com [209.113.146.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 0E48768806 for ; Thu, 24 Nov 2005 07:22:55 +1100 (EST) In-Reply-To: <20051123125326.GB4526@logos.cnet> References: <437E048B.2020605@dev.rtsoft.ru> <20051123125326.GB4526@logos.cnet> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <24aa4090f558206fa04f9d584c590034@embeddededge.com> From: Dan Malek Date: Wed, 23 Nov 2005 15:22:40 -0500 To: Marcelo Tosatti Cc: Vitaly Bordug , linuxppc-embedded list Subject: Re: [PATCH] 8xx PCMCIA: support for MPC885ADS and MPC866ADS List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Nov 23, 2005, at 7:53 AM, Marcelo Tosatti wrote: > Shouldnt you handle ioremap() failure? Most 85xx code written > by Kumar also does not. And do what if it fails? Chances are you don't have any way to report an error message or panic at this point. In fact, there are a few silly tests like this where the failure tries to panic or print some message that will never be seen. Fortunately, the code will never fail and we will never take such code paths. -- Dan