* Is platform_device_register_simple() deprecated? @ 2006-04-12 17:50 Rene Herman 2006-04-12 19:18 ` Russell King 2006-04-12 21:41 ` Greg KH 0 siblings, 2 replies; 7+ messages in thread From: Rene Herman @ 2006-04-12 17:50 UTC (permalink / raw) To: Greg Kroah-Hartman, Russell King, Dmitry Torokhov Cc: Jean Delvare, Takashi Iwai, Linux Kernel Hi Greg, Russel, Dmitry. ALSA is using platform_device_register_simple(). Jean Delvare pointed: http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 out, where _simple looks to be slated for removal. Is this indeed the case? ALSA isn't using the resources -- doing a manual alloc/add would not be a problem... Rene. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is platform_device_register_simple() deprecated? 2006-04-12 17:50 Is platform_device_register_simple() deprecated? Rene Herman @ 2006-04-12 19:18 ` Russell King 2006-04-12 21:41 ` Greg KH 1 sibling, 0 replies; 7+ messages in thread From: Russell King @ 2006-04-12 19:18 UTC (permalink / raw) To: Rene Herman Cc: Greg Kroah-Hartman, Dmitry Torokhov, Jean Delvare, Takashi Iwai, Linux Kernel On Wed, Apr 12, 2006 at 07:50:37PM +0200, Rene Herman wrote: > Hi Greg, Russel, Dmitry. > > ALSA is using platform_device_register_simple(). Jean Delvare pointed: > > http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 > > out, where _simple looks to be slated for removal. Is this indeed the > case? ALSA isn't using the resources -- doing a manual alloc/add would > not be a problem... It would be good to remove the old (restricted) API - I'm of the opinion that having too many interfaces just adds extra maintainence burden, so we should strive to ensure that old APIs are deprecated and removed in a timely fashion. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is platform_device_register_simple() deprecated? 2006-04-12 17:50 Is platform_device_register_simple() deprecated? Rene Herman 2006-04-12 19:18 ` Russell King @ 2006-04-12 21:41 ` Greg KH 2006-04-12 23:09 ` Kumar Gala 2006-04-13 2:30 ` Rene Herman 1 sibling, 2 replies; 7+ messages in thread From: Greg KH @ 2006-04-12 21:41 UTC (permalink / raw) To: Rene Herman Cc: Russell King, Dmitry Torokhov, Jean Delvare, Takashi Iwai, Linux Kernel On Wed, Apr 12, 2006 at 07:50:37PM +0200, Rene Herman wrote: > Hi Greg, Russel, Dmitry. > > ALSA is using platform_device_register_simple(). Jean Delvare pointed: > > http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 > > out, where _simple looks to be slated for removal. Is this indeed the > case? ALSA isn't using the resources -- doing a manual alloc/add would > not be a problem... Great, care to convert ALSA to use the proper api so we can remove platform_device_register_simple()? thanks, greg k-h ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is platform_device_register_simple() deprecated? 2006-04-12 21:41 ` Greg KH @ 2006-04-12 23:09 ` Kumar Gala 2006-04-12 23:30 ` Greg KH 2006-04-13 2:30 ` Rene Herman 1 sibling, 1 reply; 7+ messages in thread From: Kumar Gala @ 2006-04-12 23:09 UTC (permalink / raw) To: Greg KH Cc: Rene Herman, Russell King, Dmitry Torokhov, Jean Delvare, Takashi Iwai, Linux Kernel On Apr 12, 2006, at 4:41 PM, Greg KH wrote: > On Wed, Apr 12, 2006 at 07:50:37PM +0200, Rene Herman wrote: >> Hi Greg, Russel, Dmitry. >> >> ALSA is using platform_device_register_simple(). Jean Delvare >> pointed: >> >> http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 >> >> out, where _simple looks to be slated for removal. Is this indeed the >> case? ALSA isn't using the resources -- doing a manual alloc/add >> would >> not be a problem... > > Great, care to convert ALSA to use the proper api so we can remove > platform_device_register_simple()? Can we mark this deprecated and add it to feature-removal-schedule.txt. I'm using it about half a dozen times in arch/powerpc and wasn't sure if it was planned on being removed. - kumar ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is platform_device_register_simple() deprecated? 2006-04-12 23:09 ` Kumar Gala @ 2006-04-12 23:30 ` Greg KH 2006-04-13 18:32 ` Kumar Gala 0 siblings, 1 reply; 7+ messages in thread From: Greg KH @ 2006-04-12 23:30 UTC (permalink / raw) To: Kumar Gala Cc: Rene Herman, Russell King, Dmitry Torokhov, Jean Delvare, Takashi Iwai, Linux Kernel On Wed, Apr 12, 2006 at 06:09:48PM -0500, Kumar Gala wrote: > > On Apr 12, 2006, at 4:41 PM, Greg KH wrote: > > >On Wed, Apr 12, 2006 at 07:50:37PM +0200, Rene Herman wrote: > >>Hi Greg, Russel, Dmitry. > >> > >>ALSA is using platform_device_register_simple(). Jean Delvare > >>pointed: > >> > >>http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 > >> > >>out, where _simple looks to be slated for removal. Is this indeed the > >>case? ALSA isn't using the resources -- doing a manual alloc/add > >>would > >>not be a problem... > > > >Great, care to convert ALSA to use the proper api so we can remove > >platform_device_register_simple()? > > Can we mark this deprecated and add it to feature-removal-schedule.txt. Sure, I'll take a patch for that. But really, it's just easier to fix up all callers and delete the function. It isn't anything that feature-removal-schedule.txt should care about, as it's just the normal API changes we do all the time. thanks, greg k-h ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is platform_device_register_simple() deprecated? 2006-04-12 23:30 ` Greg KH @ 2006-04-13 18:32 ` Kumar Gala 0 siblings, 0 replies; 7+ messages in thread From: Kumar Gala @ 2006-04-13 18:32 UTC (permalink / raw) To: Greg KH Cc: Rene Herman, Russell King, Dmitry Torokhov, Jean Delvare, Takashi Iwai, Linux Kernel On Apr 12, 2006, at 6:30 PM, Greg KH wrote: > On Wed, Apr 12, 2006 at 06:09:48PM -0500, Kumar Gala wrote: >> >> On Apr 12, 2006, at 4:41 PM, Greg KH wrote: >> >>> On Wed, Apr 12, 2006 at 07:50:37PM +0200, Rene Herman wrote: >>>> Hi Greg, Russel, Dmitry. >>>> >>>> ALSA is using platform_device_register_simple(). Jean Delvare >>>> pointed: >>>> >>>> http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 >>>> >>>> out, where _simple looks to be slated for removal. Is this >>>> indeed the >>>> case? ALSA isn't using the resources -- doing a manual alloc/add >>>> would >>>> not be a problem... >>> >>> Great, care to convert ALSA to use the proper api so we can remove >>> platform_device_register_simple()? >> >> Can we mark this deprecated and add it to feature-removal- >> schedule.txt. > > Sure, I'll take a patch for that. But really, it's just easier to fix > up all callers and delete the function. It isn't anything that > feature-removal-schedule.txt should care about, as it's just the > normal > API changes we do all the time. Well, it is an exported interface so I figured that fit in the same category as removing the export of insert_resource. But, I'm not too concerned one way or the other about it. - k ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is platform_device_register_simple() deprecated? 2006-04-12 21:41 ` Greg KH 2006-04-12 23:09 ` Kumar Gala @ 2006-04-13 2:30 ` Rene Herman 1 sibling, 0 replies; 7+ messages in thread From: Rene Herman @ 2006-04-13 2:30 UTC (permalink / raw) To: Greg KH Cc: Russell King, Dmitry Torokhov, Jean Delvare, Takashi Iwai, Linux Kernel Greg KH wrote: >> ALSA is using platform_device_register_simple(). Jean Delvare pointed: >> >> http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 >> >> out, where _simple looks to be slated for removal. Is this indeed the >> case? ALSA isn't using the resources -- doing a manual alloc/add would >> not be a problem... > > Great, care to convert ALSA to use the proper api so we can remove > platform_device_register_simple()? Sure. Before I go over them though, could you perhaps confirm that just doing a manual alloc/add _is_ this proper API? Ie, something like: device = platform_device_alloc(NAME, i); if (!device) return -ENOMEM; error = platform_device_add(device); if (error) { platform_device_put(device); return error; } (there by the way are still a few users left outside ALSA as well) Rene. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-04-13 18:32 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-04-12 17:50 Is platform_device_register_simple() deprecated? Rene Herman 2006-04-12 19:18 ` Russell King 2006-04-12 21:41 ` Greg KH 2006-04-12 23:09 ` Kumar Gala 2006-04-12 23:30 ` Greg KH 2006-04-13 18:32 ` Kumar Gala 2006-04-13 2:30 ` Rene Herman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox