Skip to content

Commit

Permalink
Remove unneeded function for arm64 compatibility
Browse files Browse the repository at this point in the history
Change-Id: I19b3ad77fe916cbee7df6600970abefef32be5c2
  • Loading branch information
HashBang173 committed Apr 4, 2015
1 parent 3f9f0db commit dbb9fd2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions lib/framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 0 additions & 2 deletions multirom.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ int multirom(const char *rom_to_boot)

int multirom_init_fb(int rotation)
{
vt_set_mode(1);

if(fb_open(rotation) < 0)
{
ERROR("Failed to open framebuffer!\n");
Expand Down

0 comments on commit dbb9fd2

Please sign in to comment.