pcmcia: deprecate CS_SUCCESS
Instead of using own error or success codes, the PCMCIA code should rely on the generic return values. Therefore, replace all occurrences of CS_SUCCESS with 0. CC: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
@ -798,9 +798,9 @@ static void ray_release(struct pcmcia_device *link)
|
||||
iounmap(local->amem);
|
||||
/* Do bother checking to see if these succeed or not */
|
||||
i = pcmcia_release_window(local->amem_handle);
|
||||
if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(local->amem) ret = %x\n",i);
|
||||
if ( i != 0 ) DEBUG(0,"ReleaseWindow(local->amem) ret = %x\n",i);
|
||||
i = pcmcia_release_window(local->rmem_handle);
|
||||
if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(local->rmem) ret = %x\n",i);
|
||||
if ( i != 0 ) DEBUG(0,"ReleaseWindow(local->rmem) ret = %x\n",i);
|
||||
pcmcia_disable_device(link);
|
||||
|
||||
DEBUG(2,"ray_release ending\n");
|
||||
|
Reference in New Issue
Block a user