29 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
31 #include <linux/module.h>
34 #include <linux/device.h>
35 #include <linux/slab.h>
53 static int bttv_sub_probe(
struct device *
dev)
61 static int bttv_sub_remove(
struct device *dev)
73 .match = &bttv_sub_bus_match,
74 .probe = bttv_sub_probe,
75 .remove = bttv_sub_remove,
78 static void release_sub_device(
struct device *dev)
94 sub->
dev.parent = &core->
pci->dev;
96 sub->
dev.release = release_sub_device;
104 pr_info(
"%d: add subdevice \"%s\"\n", core->
nr, dev_name(&sub->
dev));
150 data = data | (mask & outbits);
152 spin_unlock_irqrestore(&btv->gpio_lock,flags);
180 data = data | (mask &
bits);
182 spin_unlock_irqrestore(&btv->gpio_lock,flags);