public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/char/mwave/tp3780i.c: remove kernel 2.2 #if's
@ 2005-03-12 15:58 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-12 15:58 UTC (permalink / raw)
  To: paulsch, sullivam; +Cc: linux-kernel

This patch removes #if's for kernel 2.2 .

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 drivers/char/mwave/tp3780i.c |    8 +-------
 1 files changed, 1 insertion(+), 7 deletions(-)

--- linux-2.6.11-mm2-full/drivers/char/mwave/tp3780i.c.old	2005-03-12 12:19:55.000000000 +0100
+++ linux-2.6.11-mm2-full/drivers/char/mwave/tp3780i.c	2005-03-12 12:20:32.000000000 +0100
@@ -242,20 +242,14 @@
 {
 	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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] drivers/char/mwave/tp3780i.c: remove kernel 2.2 #if's
@ 2005-03-25  1:11 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-25  1:11 UTC (permalink / raw)
  To: Andrew Morton; +Cc: paulsch, sullivam, linux-kernel

This patch removes #if's for kernel 2.2 .

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 12 Mar 2005

 drivers/char/mwave/tp3780i.c |    8 +-------
 1 files changed, 1 insertion(+), 7 deletions(-)

--- linux-2.6.11-mm2-full/drivers/char/mwave/tp3780i.c.old	2005-03-12 12:19:55.000000000 +0100
+++ linux-2.6.11-mm2-full/drivers/char/mwave/tp3780i.c	2005-03-12 12:20:32.000000000 +0100
@@ -242,20 +242,14 @@
 {
 	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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-25  1:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-25  1:11 [2.6 patch] drivers/char/mwave/tp3780i.c: remove kernel 2.2 #if's Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-03-12 15:58 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox