Skip to content

Commit 0af8e32

Browse files
Al Viroarndb
authored andcommitted
empty include/asm-generic/vga.h
all places that use anything defined in it (vgacon, mdacon and vga16fb) are built only on architectures that have all that stuff in their native asm/vga.h allows to kill stub asm/vga.h on sh, while we are at it... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 2d22a23 commit 0af8e32

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

arch/sh/include/asm/vga.h

Lines changed: 0 additions & 7 deletions
This file was deleted.

include/asm-generic/vga.h

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
/*
3-
* Access to VGA videoram
4-
*
5-
* (c) 1998 Martin Mares <[email protected]>
6-
*/
72
#ifndef __ASM_GENERIC_VGA_H
83
#define __ASM_GENERIC_VGA_H
9-
10-
/*
11-
* On most architectures that support VGA, we can just
12-
* recalculate addresses and then access the videoram
13-
* directly without any black magic.
14-
*
15-
* Everyone else needs to ioremap the address and use
16-
* proper I/O accesses.
17-
*/
18-
#ifndef VGA_MAP_MEM
19-
#define VGA_MAP_MEM(x, s) (unsigned long)phys_to_virt(x)
20-
#endif
21-
22-
#define vga_readb(x) (*(x))
23-
#define vga_writeb(x, y) (*(y) = (x))
24-
25-
#endif /* _ASM_GENERIC_VGA_H */
4+
#endif /* __ASM_GENERIC_VGA_H */

0 commit comments

Comments
 (0)