Remove unneeded function for arm64 compatibility
Change-Id: I19b3ad77fe916cbee7df6600970abefef32be5c2
This commit is contained in:
@@ -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_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)
|
||||
{
|
||||
struct fb_impl **itr;
|
||||
|
||||
2
main.c
2
main.c
@@ -110,7 +110,5 @@ int main(int argc, const char *argv[])
|
||||
close(open(KEEP_REALDATA, O_WRONLY | O_CREAT, 0000));
|
||||
}
|
||||
|
||||
vt_set_mode(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -234,8 +234,6 @@ finish:
|
||||
|
||||
int multirom_init_fb(int rotation)
|
||||
{
|
||||
vt_set_mode(1);
|
||||
|
||||
if(fb_open(rotation) < 0)
|
||||
{
|
||||
ERROR("Failed to open framebuffer!\n");
|
||||
|
||||
Reference in New Issue
Block a user