Remove unneeded function for arm64 compatibility

Change-Id: I19b3ad77fe916cbee7df6600970abefef32be5c2
This commit is contained in:
Hashbang
2015-04-04 13:08:31 -04:00
parent 3f9f0dbc11
commit dbb9fd2687
3 changed files with 0 additions and 17 deletions

View File

@@ -86,19 +86,6 @@ static inline void fb_rotate_90deg(px_type *dst, px_type *src);
static inline void fb_rotate_270deg(px_type *dst, px_type *src); static inline void fb_rotate_270deg(px_type *dst, px_type *src);
static inline void fb_rotate_180deg(px_type *dst, px_type *src); static inline void fb_rotate_180deg(px_type *dst, px_type *src);
int vt_set_mode(int graphics)
{
int fd, r;
mknod("/dev/tty0", (0600 | S_IFCHR), makedev(4, 0));
fd = open("/dev/tty0", O_RDWR | O_SYNC | O_CLOEXEC);
if (fd < 0)
return -1;
r = ioctl(fd, KDSETMODE, (void*) (graphics ? KD_GRAPHICS : KD_TEXT));
close(fd);
unlink("/dev/tty0");
return r;
}
int fb_open_impl(void) int fb_open_impl(void)
{ {
struct fb_impl **itr; struct fb_impl **itr;

2
main.c
View File

@@ -110,7 +110,5 @@ int main(int argc, const char *argv[])
close(open(KEEP_REALDATA, O_WRONLY | O_CREAT, 0000)); close(open(KEEP_REALDATA, O_WRONLY | O_CREAT, 0000));
} }
vt_set_mode(0);
return 0; return 0;
} }

View File

@@ -234,8 +234,6 @@ finish:
int multirom_init_fb(int rotation) int multirom_init_fb(int rotation)
{ {
vt_set_mode(1);
if(fb_open(rotation) < 0) if(fb_open(rotation) < 0)
{ {
ERROR("Failed to open framebuffer!\n"); ERROR("Failed to open framebuffer!\n");