xpp: init_card: eeprom_release_201 applies to any 20x
* The variable eeprom_release_201 was added in the initialization script of the FXS module to add a case where it is different from 101 mains. * However, it tests for "201" and it should apply for any 20x. * Remove the variable from the init script of module type 6 (new FXS) as it was not used. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
26597a5cac
commit
9a4d2fce48
@ -94,7 +94,7 @@ if (-t STDERR) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
logit "XBUS_MODEL_STRING='$ENV{XBUS_MODEL_STRING}'";
|
logit "XBUS_MODEL_STRING='$ENV{XBUS_MODEL_STRING}'";
|
||||||
if ($ENV{XBUS_MODEL_STRING} =~ m{.*/.*/201}) {
|
if ($ENV{XBUS_MODEL_STRING} =~ m{.*/.*/20.}) {
|
||||||
$eeprom_release_201 = 1;
|
$eeprom_release_201 = 1;
|
||||||
}
|
}
|
||||||
$chipregs = sprintf "/sys/bus/xpds/devices/%02d:%1d:0/chipregs",
|
$chipregs = sprintf "/sys/bus/xpds/devices/%02d:%1d:0/chipregs",
|
||||||
|
@ -51,7 +51,6 @@ BEGIN { $init_dir = dirname($0); unshift(@INC, "$init_dir"); }
|
|||||||
use XppConfig $init_dir;
|
use XppConfig $init_dir;
|
||||||
my $unit_id;
|
my $unit_id;
|
||||||
my %opts;
|
my %opts;
|
||||||
my $eeprom_release_201 = 0;
|
|
||||||
|
|
||||||
getopts('o:', \%opts);
|
getopts('o:', \%opts);
|
||||||
|
|
||||||
@ -96,9 +95,6 @@ if (-t STDERR) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
logit "XBUS_MODEL_STRING='$ENV{XBUS_MODEL_STRING}'";
|
logit "XBUS_MODEL_STRING='$ENV{XBUS_MODEL_STRING}'";
|
||||||
if ($ENV{XBUS_MODEL_STRING} =~ m{.*/.*/201}) {
|
|
||||||
$eeprom_release_201 = 1;
|
|
||||||
}
|
|
||||||
$chipregs = sprintf "/sys/bus/xpds/devices/%02d:%1d:0/chipregs",
|
$chipregs = sprintf "/sys/bus/xpds/devices/%02d:%1d:0/chipregs",
|
||||||
$ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER};
|
$ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER};
|
||||||
$command = "/proc/xpp/$ENV{XBUS_NAME}/command";
|
$command = "/proc/xpp/$ENV{XBUS_NAME}/command";
|
||||||
|
Loading…
Reference in New Issue
Block a user