static int enable_transmission(struct b3dfg_dev *fgdev)
{
- u16 command;
unsigned long flags;
struct device *dev = &fgdev->pdev->dev;
return -EINVAL;
}
- /*
- * Check we're a bus master.
- * TODO: I think we can remove this having added the pci_set_master call
- */
- pci_read_config_word(fgdev->pdev, PCI_COMMAND, &command);
- if (!(command & PCI_COMMAND_MASTER)) {
- dev_err(dev, "not a bus master, force-enabling\n");
- pci_write_config_word(fgdev->pdev, PCI_COMMAND,
- command | PCI_COMMAND_MASTER);
- }
-
spin_lock_irqsave(&fgdev->buffer_lock, flags);
/* Handle racing enable_transmission calls. */