Skip to content

Commit

Permalink
Revert "init: Export Android version from kernel command line"
Browse files Browse the repository at this point in the history
This reverts commit 07cdda6.

This is no longer necessary now that everyone is on Android 10.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
  • Loading branch information
kdrag0n committed Aug 25, 2020
1 parent 4812f01 commit a18aa6c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions include/linux/android_version.h

This file was deleted.

14 changes: 0 additions & 14 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,6 @@ static int set_charger_mode(char *str)
__setup("androidboot.mode=", set_charger_mode);
EXPORT_SYMBOL(g_Charger_mode);

static unsigned int android_version = 9;

static int __init set_android_version(char *val)
{
get_option(&val, &android_version);
return 0;
}
__setup("androidboot.version=", set_android_version);

unsigned int get_android_version(void)
{
return android_version;
}

/*
* Used to generate warnings if static_key manipulation functions are used
* before jump_label_init is called.
Expand Down

0 comments on commit a18aa6c

Please sign in to comment.