mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
media: staging: atomisp: Remove dead code for MID (#3)
intel_mid_msgbus_*_raw*() are not used anywhere. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
e84bf2225d
commit
e64d5bd481
2 changed files with 0 additions and 62 deletions
|
@ -18,9 +18,5 @@
|
||||||
#define PCI_ROOT_MSGBUS_WRITE 0x11
|
#define PCI_ROOT_MSGBUS_WRITE 0x11
|
||||||
#define PCI_ROOT_MSGBUS_DWORD_ENABLE 0xf0
|
#define PCI_ROOT_MSGBUS_DWORD_ENABLE 0xf0
|
||||||
|
|
||||||
u32 intel_mid_msgbus_read32_raw(u32 cmd);
|
|
||||||
u32 intel_mid_msgbus_read32(u8 port, u32 addr);
|
u32 intel_mid_msgbus_read32(u8 port, u32 addr);
|
||||||
void intel_mid_msgbus_write32_raw(u32 cmd, u32 data);
|
|
||||||
void intel_mid_msgbus_write32(u8 port, u32 addr, u32 data);
|
void intel_mid_msgbus_write32(u8 port, u32 addr, u32 data);
|
||||||
u32 intel_mid_msgbus_read32_raw_ext(u32 cmd, u32 cmd_ext);
|
|
||||||
void intel_mid_msgbus_write32_raw_ext(u32 cmd, u32 cmd_ext, u32 data);
|
|
||||||
|
|
|
@ -46,64 +46,6 @@ static int intel_mid_msgbus_init(void)
|
||||||
}
|
}
|
||||||
fs_initcall(intel_mid_msgbus_init);
|
fs_initcall(intel_mid_msgbus_init);
|
||||||
|
|
||||||
u32 intel_mid_msgbus_read32_raw(u32 cmd)
|
|
||||||
{
|
|
||||||
unsigned long irq_flags;
|
|
||||||
u32 data;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&msgbus_lock, irq_flags);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_CTRL_REG, cmd);
|
|
||||||
pci_read_config_dword(pci_root, PCI_ROOT_MSGBUS_DATA_REG, &data);
|
|
||||||
spin_unlock_irqrestore(&msgbus_lock, irq_flags);
|
|
||||||
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(intel_mid_msgbus_read32_raw);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* GU: this function is only used by the VISA and 'VXD' drivers.
|
|
||||||
*/
|
|
||||||
u32 intel_mid_msgbus_read32_raw_ext(u32 cmd, u32 cmd_ext)
|
|
||||||
{
|
|
||||||
unsigned long irq_flags;
|
|
||||||
u32 data;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&msgbus_lock, irq_flags);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_CTRL_EXT_REG, cmd_ext);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_CTRL_REG, cmd);
|
|
||||||
pci_read_config_dword(pci_root, PCI_ROOT_MSGBUS_DATA_REG, &data);
|
|
||||||
spin_unlock_irqrestore(&msgbus_lock, irq_flags);
|
|
||||||
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(intel_mid_msgbus_read32_raw_ext);
|
|
||||||
|
|
||||||
void intel_mid_msgbus_write32_raw(u32 cmd, u32 data)
|
|
||||||
{
|
|
||||||
unsigned long irq_flags;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&msgbus_lock, irq_flags);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_DATA_REG, data);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_CTRL_REG, cmd);
|
|
||||||
spin_unlock_irqrestore(&msgbus_lock, irq_flags);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(intel_mid_msgbus_write32_raw);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* GU: this function is only used by the VISA and 'VXD' drivers.
|
|
||||||
*/
|
|
||||||
void intel_mid_msgbus_write32_raw_ext(u32 cmd, u32 cmd_ext, u32 data)
|
|
||||||
{
|
|
||||||
unsigned long irq_flags;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&msgbus_lock, irq_flags);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_DATA_REG, data);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_CTRL_EXT_REG, cmd_ext);
|
|
||||||
pci_write_config_dword(pci_root, PCI_ROOT_MSGBUS_CTRL_REG, cmd);
|
|
||||||
spin_unlock_irqrestore(&msgbus_lock, irq_flags);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(intel_mid_msgbus_write32_raw_ext);
|
|
||||||
|
|
||||||
u32 intel_mid_msgbus_read32(u8 port, u32 addr)
|
u32 intel_mid_msgbus_read32(u8 port, u32 addr)
|
||||||
{
|
{
|
||||||
unsigned long irq_flags;
|
unsigned long irq_flags;
|
||||||
|
|
Loading…
Reference in a new issue