diff options
| author | Geert Uytterhoeven <[email protected]> | 2009-01-28 20:01:02 +0000 |
|---|---|---|
| committer | Geert Uytterhoeven <[email protected]> | 2010-05-17 19:37:40 +0000 |
| commit | 0b7f1a7efb38b551f5948a13d0b36e876ba536db (patch) | |
| tree | a1982c30350b7be11b4db66e7c2bcd4983ed1998 /drivers/base/platform.c | |
| parent | m68k: invoke oom-killer from page fault (diff) | |
| download | kernel-0b7f1a7efb38b551f5948a13d0b36e876ba536db.tar.gz kernel-0b7f1a7efb38b551f5948a13d0b36e876ba536db.zip | |
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 <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/base/platform.c')
| -rw-r--r-- | drivers/base/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 4b4b565c835f..c5fbe198fbdb 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -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; |
