vgaarb: Provide dummy default device functions
Add some stub functions for the case where CONFIG_VGA_ARB is disabled. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
6a556039e7
commit
6e079d53c1
|
@ -183,8 +183,13 @@ extern void vga_put(struct pci_dev *pdev, unsigned int rsrc);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE
|
#ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE
|
||||||
|
#ifdef CONFIG_VGA_ARB
|
||||||
extern struct pci_dev *vga_default_device(void);
|
extern struct pci_dev *vga_default_device(void);
|
||||||
extern void vga_set_default_device(struct pci_dev *pdev);
|
extern void vga_set_default_device(struct pci_dev *pdev);
|
||||||
|
#else
|
||||||
|
static inline struct pci_dev *vga_default_device(void) { return NULL; };
|
||||||
|
static inline void vga_set_default_device(struct pci_dev *pdev) { };
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in New Issue