All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] check_/request_region fixes: sound/oss/pss.c
@ 2006-10-03  4:28 Kevin Lo
  2006-10-03  9:13 ` Dan Carpenter
  2006-10-04  1:33 ` Kevin Lo
  0 siblings, 2 replies; 3+ messages in thread
From: Kevin Lo @ 2006-10-03  4:28 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Hi,

Attached patch is to get rid of check_region and replace with
request_region.

	Kevin

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 437 bytes --]

--- linux-2.6.18/sound/oss/pss.c.orig	2006-10-03 11:51:18.000000000 +0800
+++ linux-2.6.18/sound/oss/pss.c	2006-10-03 12:05:54.000000000 +0800
@@ -677,7 +677,7 @@ static void configure_nonsound_component
 	{
 		printk(KERN_INFO "PSS: CDROM port not enabled.\n");
 	}
-	else if(check_region(pss_cdrom_port, 2))
+	else if(!request_region(pss_cdrom_port, 2, "PSS cdrom port"))
 	{
 		printk(KERN_ERR "PSS: CDROM I/O port conflict.\n");
 	}

[-- Attachment #3: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

* Re: [KJ] [PATCH] check_/request_region fixes: sound/oss/pss.c
  2006-10-03  4:28 [KJ] [PATCH] check_/request_region fixes: sound/oss/pss.c Kevin Lo
@ 2006-10-03  9:13 ` Dan Carpenter
  2006-10-04  1:33 ` Kevin Lo
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2006-10-03  9:13 UTC (permalink / raw)
  To: kernel-janitors

On 10/2/06, Kevin Lo <kevlo@kevlo.org> wrote:
> Hi,
>
> Attached patch is to get rid of check_region and replace with
> request_region.
>
>         Kevin
>

Nope.  This is wrong.  You have to replace both check_region() and
modify the call to request_region().  Look through the list for
examples on how to do it.

Also don't send the patch as an attachment, just include it in your
email.  But make sure the lines don't wrap and the tabs are preserved.

regards,
dan carpenter
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

* Re: [KJ] [PATCH] check_/request_region fixes: sound/oss/pss.c
  2006-10-03  4:28 [KJ] [PATCH] check_/request_region fixes: sound/oss/pss.c Kevin Lo
  2006-10-03  9:13 ` Dan Carpenter
@ 2006-10-04  1:33 ` Kevin Lo
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Lo @ 2006-10-04  1:33 UTC (permalink / raw)
  To: kernel-janitors

Kevin Lo wrote:
> Hi,
> 
> Attached patch is to get rid of check_region and replace with
> request_region.

Whoops, please ignore this patch since I sent the wrong one :-(

> 
> 	Kevin

	Kevin

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2006-10-04  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03  4:28 [KJ] [PATCH] check_/request_region fixes: sound/oss/pss.c Kevin Lo
2006-10-03  9:13 ` Dan Carpenter
2006-10-04  1:33 ` Kevin Lo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.