aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-03-28 07:25:51 -0400
committerArnd Bergmann <arnd@arndb.de>2013-03-28 07:25:51 -0400
commit063ab6daeb2ba5ef8f47c3fc04a749936c62d5bb (patch)
tree43532e85397b7105999851a2875db9bbf043080e /net/core/dev_ioctl.c
parentcde35bd027023b052316c14ae3fc01e2f487a6ab (diff)
parentdbaf6a8d5de7b63f85eea10a47681f920cbf7385 (diff)
Merge branch 'prima2/multiplatform' into next/multiplatform
This series enables multiplatform support on the SIRF prima2/marco/atlas6 platform. The code was already quite tidy, so this is a relatively simple change, and it follows similar changes we made to other ARMv7 based platforms recently. * prima2/multiplatform: ARM: sirf: enable support in multi_v7_defconfig ARM: sirf: enable multiplatform support ARM: sirf: use clocksource_of infrastructure ARM: sirf: move debug-macro.S to include/debug/sirf.S ARM: sirf: enable sparse IRQ ARM: sirf: move irq driver to drivers/irqchip ARM: sirf: fix prima2 interrupt lookup pinctrl: sirf: convert to linear irq domain clocksource: make CLOCKSOURCE_OF_DECLARE type safe ARM/dts: prima2: add .dtsi for atlas6 and .dts for atla6-evb board arm: prima2: add new SiRFatlas6 machine in common board ARM: smp_twd: convert to use CLKSRC_OF init clocksource: tegra20: use the device_node pointer passed to init clocksource: pass DT node pointer to init functions clocksource: add empty version of clocksource_of_init Conflicts: arch/arm/configs/multi_v7_defconfig arch/arm/mach-spear/spear13xx.c Tested-by: Barry Song <Barry.Song@csr.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/core/dev_ioctl.c')
0 files changed, 0 insertions, 0 deletions
lass="hl com"> * * Adds the driver structure to the list of registered drivers * Returns a negative value on error, otherwise 0. * If no error occurred, the driver remains registered even if * no device was claimed during registration. */ int tc_register_driver(struct tc_driver *tdrv) { return driver_register(&tdrv->driver); } EXPORT_SYMBOL(tc_register_driver); /** * tc_unregister_driver - unregister a TC driver * @drv: the driver structure to unregister * * Deletes the driver structure from the list of registered TC drivers, * gives it a chance to clean up by calling its remove() function for * each device it was responsible for, and marks those devices as * driverless. */ void tc_unregister_driver(struct tc_driver *tdrv) { driver_unregister(&tdrv->driver); } EXPORT_SYMBOL(tc_unregister_driver); /** * tc_match_device - tell if a TC device structure has a matching * TC device ID structure * @tdrv: the TC driver to earch for matching TC device ID strings * @tdev: the TC device structure to match against * * Used by a driver to check whether a TC device present in the * system is in its list of supported devices. Returns the matching * tc_device_id structure or %NULL if there is no match. */ const struct tc_device_id *tc_match_device(struct tc_driver *tdrv, struct tc_dev *tdev) { const struct tc_device_id *id = tdrv->id_table; if (id) { while (id->name[0] || id->vendor[0]) { if (strcmp(tdev->name, id->name) == 0 && strcmp(tdev->vendor, id->vendor) == 0) return id; id++; } } return NULL; } EXPORT_SYMBOL(tc_match_device); /** * tc_bus_match - Tell if a device structure has a matching * TC device ID structure * @dev: the device structure to match against * @drv: the device driver to search for matching TC device ID strings * * Used by a driver to check whether a TC device present in the * system is in its list of supported devices. Returns 1 if there * is a match or 0 otherwise. */ static int tc_bus_match(struct device *dev, struct device_driver *drv) { struct tc_dev *tdev = to_tc_dev(dev); struct tc_driver *tdrv = to_tc_driver(drv); const struct tc_device_id *id; id = tc_match_device(tdrv, tdev); if (id) return 1; return 0; } struct bus_type tc_bus_type = { .name = "tc", .match = tc_bus_match, }; EXPORT_SYMBOL(tc_bus_type); static int __init tc_driver_init(void) { return bus_register(&tc_bus_type); } postcore_initcall(tc_driver_init);