Sergei Shtylyov <[email protected]> writes:

> Hello.
>
> Kevin Hilman wrote:
>
>> Signed-off-by: Kevin Hilman <[email protected]>
>>   
>
>   Sorry, NAK.
>
>> diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c
>> index f38aac7..be9c904 100644
>> --- a/drivers/ide/palm_bk3710.c
>> +++ b/drivers/ide/palm_bk3710.c
>> @@ -380,7 +380,11 @@ static int __init palm_bk3710_probe(struct 
>> platform_device *pdev)
>>              return -EBUSY;
>>      }
>>  -   base = IO_ADDRESS(mem->start);
>> +    base = ioremap(mem->start, mem->end);
>> +    if (!base) {
>> +            printk(KERN_ERR "failed to map IO memory\n");
>> +            return -ENOMEM;
>>   
>
>   Leaks requested memory region.
>

Where would you suggest putting the iounmap?  If the driver had a
remove hook, I would've put it there.

Which brings up a bigger question, why isn't there a remove hook.  I
vaguely remember there being some problem way back in the 2.6.18 time
frame that wouldn't allow this driver to be removed.  Is that still a
problem in newer kernels?

Kevin






_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to