File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void __iomem *meson_reg_map[IO_BUS_MAX];
4141
4242int aml_reg_read (u32 bus_type , unsigned int reg , unsigned int * val )
4343{
44- if (( bus_type >= IO_CBUS_BASE ) && ( bus_type < IO_BUS_MAX ) ) {
44+ if (bus_type < IO_BUS_MAX ) {
4545 * val = readl ((meson_reg_map [bus_type ]+ reg ));
4646 return 0 ;
4747 } else
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(aml_reg_read);
5151
5252int aml_reg_write (u32 bus_type , unsigned int reg , unsigned int val )
5353{
54- if (( bus_type >= IO_CBUS_BASE ) && ( bus_type < IO_BUS_MAX ) ) {
54+ if (bus_type < IO_BUS_MAX ) {
5555 writel (val , (meson_reg_map [bus_type ]+ reg ));
5656 return 0 ;
5757 } else
@@ -63,7 +63,7 @@ int aml_regmap_update_bits(u32 bus_type,
6363 unsigned int reg , unsigned int mask ,
6464 unsigned int val )
6565{
66- if (( bus_type >= IO_CBUS_BASE ) && ( bus_type < IO_BUS_MAX ) ) {
66+ if (bus_type < IO_BUS_MAX ) {
6767 unsigned int tmp , orig ;
6868
6969 aml_reg_read (bus_type , reg , & orig );
You can’t perform that action at this time.
0 commit comments