aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-12-10 01:36:28 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-04 19:18:09 -0500
commita96b204208443ab7e23c681f7ddabe807a741d0c (patch)
tree7dacd3fe2790e1c5a922ff30fdab00b689a83998 /drivers/base/platform.c
parent93ce3061be212f6280e7ccafa9a7f698a95c6d75 (diff)
[PATCH] Driver Core: Rearrange exports in platform.c
Driver core: rearrange exports in platform.c The new way is to specify export right after symbol definition. Rearrange exports to follow new style to avoid mixing two styles in one file. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r--drivers/base/platform.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 95ecfc490d54..0f81731bdfa8 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -25,6 +25,7 @@
25struct device platform_bus = { 25struct device platform_bus = {
26 .bus_id = "platform", 26 .bus_id = "platform",
27}; 27};
28EXPORT_SYMBOL_GPL(platform_bus);
28 29
29/** 30/**
30 * platform_get_resource - get a resource for a device 31 * platform_get_resource - get a resource for a device
@@ -49,6 +50,7 @@ platform_get_resource(struct platform_device *dev, unsigned int type,
49 } 50 }
50 return NULL; 51 return NULL;
51} 52}
53EXPORT_SYMBOL_GPL(platform_get_resource);
52 54
53/** 55/**
54 * platform_get_irq - get an IRQ for a device 56 * platform_get_irq - get an IRQ for a device
@@ -61,6 +63,7 @@ int platform_get_irq(struct platform_device *dev, unsigned int num)
61 63
62 return r ? r->start : 0; 64 return r ? r->start : 0;
63} 65}
66EXPORT_SYMBOL_GPL(platform_get_irq);
64 67
65/** 68/**
66 * platform_get_resource_byname - get a resource for a device by name 69 * platform_get_resource_byname - get a resource for a device by name
@@ -84,6 +87,7 @@ platform_get_resource_byname(struct platform_device *dev, unsigned int type,
84 } 87 }
85 return NULL; 88 return NULL;
86} 89}
90EXPORT_SYMBOL_GPL(platform_get_resource_byname);
87 91
88/** 92/**
89 * platform_get_irq - get an IRQ for a device 93 * platform_get_irq - get an IRQ for a device
@@ -96,6 +100,7 @@ int platform_get_irq_byname(struct platform_device *dev, char *name)
96 100
97 return r ? r->start : 0; 101 return r ? r->start : 0;
98} 102}
103EXPORT_SYMBOL_GPL(platform_get_irq_byname);
99 104
100/** 105/**
101 * platform_add_devices - add a numbers of platform devices 106 * platform_add_devices - add a numbers of platform devices
@@ -117,6 +122,7 @@ int platform_add_devices(struct platform_device **devs, int num)
117 122
118 return ret; 123 return ret;
119} 124}
125EXPORT_SYMBOL_GPL(platform_add_devices);
120 126
121struct platform_object { 127struct platform_object {
122 struct platform_device pdev; 128 struct platform_device pdev;
@@ -314,6 +320,7 @@ int platform_device_register(struct platform_device * pdev)
314 device_initialize(&pdev->dev); 320 device_initialize(&pdev->dev);
315 return platform_device_add(pdev); 321 return platform_device_add(pdev);
316} 322}
323EXPORT_SYMBOL_GPL(platform_device_register);
317 324
318/** 325/**
319 * platform_device_unregister - unregister a platform-level device 326 * platform_device_unregister - unregister a platform-level device
@@ -328,6 +335,7 @@ void platform_device_unregister(struct platform_device * pdev)
328 platform_device_del(pdev); 335 platform_device_del(pdev);
329 platform_device_put(pdev); 336 platform_device_put(pdev);
330} 337}
338EXPORT_SYMBOL_GPL(platform_device_unregister);
331 339
332/** 340/**
333 * platform_device_register_simple 341 * platform_device_register_simple
@@ -370,6 +378,7 @@ error:
370 platform_device_put(pdev); 378 platform_device_put(pdev);
371 return ERR_PTR(retval); 379 return ERR_PTR(retval);
372} 380}
381EXPORT_SYMBOL_GPL(platform_device_register_simple);
373 382
374static int platform_drv_probe(struct device *_dev) 383static int platform_drv_probe(struct device *_dev)
375{ 384{
@@ -491,6 +500,7 @@ struct bus_type platform_bus_type = {
491 .suspend = platform_suspend, 500 .suspend = platform_suspend,
492 .resume = platform_resume, 501 .resume = platform_resume,
493}; 502};
503EXPORT_SYMBOL_GPL(platform_bus_type);
494 504
495int __init platform_bus_init(void) 505int __init platform_bus_init(void)
496{ 506{
@@ -519,14 +529,3 @@ u64 dma_get_required_mask(struct device *dev)
519} 529}
520EXPORT_SYMBOL_GPL(dma_get_required_mask); 530EXPORT_SYMBOL_GPL(dma_get_required_mask);
521#endif 531#endif
522
523EXPORT_SYMBOL_GPL(platform_bus);
524EXPORT_SYMBOL_GPL(platform_bus_type);
525EXPORT_SYMBOL_GPL(platform_add_devices);
526EXPORT_SYMBOL_GPL(platform_device_register);
527EXPORT_SYMBOL_GPL(platform_device_register_simple);
528EXPORT_SYMBOL_GPL(platform_device_unregister);
529EXPORT_SYMBOL_GPL(platform_get_irq);
530EXPORT_SYMBOL_GPL(platform_get_resource);
531EXPORT_SYMBOL_GPL(platform_get_irq_byname);
532EXPORT_SYMBOL_GPL(platform_get_resource_byname);