Commit 27b7e752 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] check_region cleanup from drivers/char/ip2main.c

johnpol@2ka.mipt.ru: 40) request_region check, 31-40:
  You say, i'm frezy :)

  	Evgeniy Polyakov ( s0mbre )
parent 5a99778c
......@@ -1002,12 +1002,10 @@ ip2_init_board( int boardnum )
printk(KERN_INFO "IP2: Board %d: addr=0x%x irq=%d\n", boardnum + 1,
ip2config.addr[boardnum], ip2config.irq[boardnum] );
if (0 != ( rc = check_region( ip2config.addr[boardnum], 8))) {
printk(KERN_ERR "IP2: bad addr=0x%x rc = %d\n",
ip2config.addr[boardnum], rc );
if (!request_region( ip2config.addr[boardnum], 8, pcName )) {
printk(KERN_ERR "IP2: bad addr=0x%x\n", ip2config.addr[boardnum]);
goto err_initialize;
}
request_region( ip2config.addr[boardnum], 8, pcName );
if ( iiDownloadAll ( pB, (loadHdrStrPtr)Fip_firmware, 1, Fip_firmware_size )
!= II_DOWN_GOOD ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment