platform: Make platform resource input parameters const
Make the platform resource input parameters of platform_device_add_resources() and platform_device_register_simple() const, as the resources are copied and never modified. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -187,7 +187,7 @@ EXPORT_SYMBOL_GPL(platform_device_alloc);
|
||||
* released.
|
||||
*/
|
||||
int platform_device_add_resources(struct platform_device *pdev,
|
||||
struct resource *res, unsigned int num)
|
||||
const struct resource *res, unsigned int num)
|
||||
{
|
||||
struct resource *r;
|
||||
|
||||
@@ -367,7 +367,7 @@ EXPORT_SYMBOL_GPL(platform_device_unregister);
|
||||
*/
|
||||
struct platform_device *platform_device_register_simple(const char *name,
|
||||
int id,
|
||||
struct resource *res,
|
||||
const struct resource *res,
|
||||
unsigned int num)
|
||||
{
|
||||
struct platform_device *pdev;
|
||||
|
Reference in New Issue
Block a user