Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3386
b: refs/heads/master
c: c97f97b
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jun 25, 2005
1 parent 3baa236 commit ef747b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f040ffab7488c02c0806ec8808fa619d463560f9
refs/heads/master: c97f97b374fe07bc300dea629cba14612442c26d
8 changes: 1 addition & 7 deletions trunk/drivers/char/mwave/tp3780i.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,20 +242,14 @@ int tp3780I_ClaimResources(THINKPAD_BD_DATA * pBDData)
{
int retval = 0;
DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
struct resource *pres;
#endif

PRINTK_2(TRACE_TP3780I,
"tp3780i::tp3780I_ClaimResources entry pBDData %p\n", pBDData);

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
pres = request_region(pSettings->usDspBaseIO, 16, "mwave_3780i");
if ( pres == NULL ) retval = -EIO;
#else
retval = check_region(pSettings->usDspBaseIO, 16);
if (!retval) request_region(pSettings->usDspBaseIO, 16, "mwave_3780i");
#endif

if (retval) {
PRINTK_ERROR(KERN_ERR_MWAVE "tp3780i::tp3780I_ClaimResources: Error: Could not claim I/O region starting at %x\n", pSettings->usDspBaseIO);
retval = -EIO;
Expand Down

0 comments on commit ef747b9

Please sign in to comment.