···1818#include <linux/cpufreq.h>1919#include <linux/ioport.h>2020#include <linux/sched.h> /* just for sched_clock() - funny that */2121+#include <linux/platform_device.h>21222223#include <asm/div64.h>2324#include <asm/hardware.h>
···1717 * along with this program; if not, write to the Free Software1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1919 */2020-#include <linux/device.h>2020+#include <linux/platform_device.h>2121#include <linux/fs.h>2222#include <linux/init.h>2323#include <linux/module.h>
+1-1
drivers/char/vr41xx_giu.c
···1919 * along with this program; if not, write to the Free Software2020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA2121 */2222-#include <linux/device.h>2222+#include <linux/platform_device.h>2323#include <linux/errno.h>2424#include <linux/fs.h>2525#include <linux/init.h>
+1-1
drivers/char/vr41xx_rtc.c
···1717 * along with this program; if not, write to the Free Software1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1919 */2020-#include <linux/device.h>2020+#include <linux/platform_device.h>2121#include <linux/fs.h>2222#include <linux/init.h>2323#include <linux/ioport.h>
···2020 * GNU General Public License for more details.2121 */22222323-#include <linux/device.h>2323+#include <linux/platform_device.h>2424#include <linux/dma-mapping.h>2525#include <linux/errno.h>2626#include <linux/init.h>
···3333#include <linux/delay.h>3434#include <linux/errno.h>3535#include <linux/err.h>3636-#include <linux/device.h>3636+#include <linux/platform_device.h>37373838#include <asm/hardware.h>3939#include <asm/irq.h>···918918 int ret;919919920920 ret = driver_register(&s3c2410_i2c_driver);921921- if (ret == 0)922922- ret = driver_register(&s3c2440_i2c_driver); 921921+ if (ret == 0) {922922+ ret = driver_register(&s3c2440_i2c_driver);923923+ if (ret)924924+ driver_unregister(&s3c2410_i2c_driver);925925+ }923926924927 return ret;925928}
···1818 * This file is licenced under the GPL.1919 */20202121+#include <linux/platform_device.h>2222+2123#include <asm/mach-au1x00/au1000.h>22242325#define USBH_ENABLE_BE (1<<0)
+2
drivers/usb/host/ohci-lh7a404.c
···1616 * This file is licenced under the GPL.1717 */18181919+#include <linux/platform_device.h>2020+1921#include <asm/hardware.h>20222123
···1414 * This file is licenced under the GPL.1515 */16161717+#include <linux/platform_device.h>1818+1719/* configure so an HC device and id are always provided */1820/* always called with process context; sleeping is OK */1921
···1919 * This file is licenced under the GPL.2020*/21212222+#include <linux/platform_device.h>2323+2224#include <asm/hardware.h>2325#include <asm/hardware/clock.h>2426#include <asm/arch/usb-control.h>
···11+/*22+ * platform_device.h - generic, centralized driver model33+ *44+ * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org>55+ *66+ * This file is released under the GPLv277+ *88+ * See Documentation/driver-model/ for more information.99+ */1010+1111+#ifndef _PLATFORM_DEVICE_H_1212+#define _PLATFORM_DEVICE_H_1313+1414+#include <linux/device.h>1515+1616+struct platform_device {1717+ const char * name;1818+ u32 id;1919+ struct device dev;2020+ u32 num_resources;2121+ struct resource * resource;2222+};2323+2424+#define to_platform_device(x) container_of((x), struct platform_device, dev)2525+2626+extern int platform_device_register(struct platform_device *);2727+extern void platform_device_unregister(struct platform_device *);2828+2929+extern struct bus_type platform_bus_type;3030+extern struct device platform_bus;3131+3232+extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int);3333+extern int platform_get_irq(struct platform_device *, unsigned int);3434+extern struct resource *platform_get_resource_byname(struct platform_device *, unsigned int, char *);3535+extern int platform_get_irq_byname(struct platform_device *, char *);3636+extern int platform_add_devices(struct platform_device **, int);3737+3838+extern struct platform_device *platform_device_register_simple(char *, unsigned int, struct resource *, unsigned int);3939+4040+#endif /* _PLATFORM_DEVICE_H_ */
+1-1
include/linux/serial_8250.h
···1212#define _LINUX_SERIAL_8250_H13131414#include <linux/serial_core.h>1515-#include <linux/device.h>1515+#include <linux/platform_device.h>16161717/*1818 * This is the platform device platform_data structure