Showing the changes to include (3 of 198 files). Show all
Unified · Split
| @@ -18,7 +18,7 @@ · 17 unmodified lines | ||
| 18 | 18 | #define __ASM_PPC_SYS_H |
| 19 | 19 | |
| 20 | 20 | #include <linux/init.h> |
| 21 | −#include <linux/device.h> | |
| 21 | +#include <linux/platform_device.h> | |
| 22 | 22 | #include <linux/types.h> |
| 23 | 23 | |
| 24 | 24 | #if defined(CONFIG_8260) |
| @@ -396,32 +396,6 @@ extern struct device * get_device(struct device * dev); · 395 unmodified lines | ||
| 396 | 396 | extern void put_device(struct device * dev); |
| 397 | 397 | |
| 398 | 398 | |
| 399 | −/* drivers/base/platform.c */ | |
| 400 | − | |
| 401 | −struct platform_device { | |
| 402 | − const char * name; | |
| 403 | − u32 id; | |
| 404 | − struct device dev; | |
| 405 | − u32 num_resources; | |
| 406 | − struct resource * resource; | |
| 407 | −}; | |
| 408 | − | |
| 409 | −#define to_platform_device(x) container_of((x), struct platform_device, dev) | |
| 410 | − | |
| 411 | −extern int platform_device_register(struct platform_device *); | |
| 412 | −extern void platform_device_unregister(struct platform_device *); | |
| 413 | − | |
| 414 | −extern struct bus_type platform_bus_type; | |
| 415 | −extern struct device platform_bus; | |
| 416 | − | |
| 417 | −extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int); | |
| 418 | −extern int platform_get_irq(struct platform_device *, unsigned int); | |
| 419 | −extern struct resource *platform_get_resource_byname(struct platform_device *, unsigned int, char *); | |
| 420 | −extern int platform_get_irq_byname(struct platform_device *, char *); | |
| 421 | −extern int platform_add_devices(struct platform_device **, int); | |
| 422 | − | |
| 423 | −extern struct platform_device *platform_device_register_simple(char *, unsigned int, struct resource *, unsigned int); | |
| 424 | − | |
| 425 | 399 | /* drivers/base/power.c */ |
| 426 | 400 | extern void device_shutdown(void); |
| 427 | 401 | |
| @@ -12,7 +12,7 @@ · 11 unmodified lines | ||
| 12 | 12 | #define _LINUX_SERIAL_8250_H |
| 13 | 13 | |
| 14 | 14 | #include <linux/serial_core.h> |
| 15 | −#include <linux/device.h> | |
| 15 | +#include <linux/platform_device.h> | |
| 16 | 16 | |
| 17 | 17 | /* |
| 18 | 18 | * This is the platform device platform_data structure |