lkml.org 
[lkml]   [2005]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: missing "platform_remove_devices" in kernel 2.6
On Tue, Jul 05, 2005 at 11:04:53PM +0200, Pawel Kolodziejski wrote:
> I attached patch for kernel 2.6.12 which add missing
> "platform_remove_devices" function in "drivers/base/platform.c" file.

It's missing because platform_register_devices() is only intended to
be called from code areas which only registers platform devices - eg,
platform specific initialisation code.

Using platform_register_devices() from a module to register a set of
statically allocated devices is very dangerous - you should be using
platform_device_register_simple() instead.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-06 00:01    [W:0.098 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site