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];
41
41
42
42
int aml_reg_read (u32 bus_type , unsigned int reg , unsigned int * val )
43
43
{
44
- if (( bus_type >= IO_CBUS_BASE ) && ( bus_type < IO_BUS_MAX ) ) {
44
+ if (bus_type < IO_BUS_MAX ) {
45
45
* val = readl ((meson_reg_map [bus_type ]+ reg ));
46
46
return 0 ;
47
47
} else
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(aml_reg_read);
51
51
52
52
int aml_reg_write (u32 bus_type , unsigned int reg , unsigned int val )
53
53
{
54
- if (( bus_type >= IO_CBUS_BASE ) && ( bus_type < IO_BUS_MAX ) ) {
54
+ if (bus_type < IO_BUS_MAX ) {
55
55
writel (val , (meson_reg_map [bus_type ]+ reg ));
56
56
return 0 ;
57
57
} else
@@ -63,7 +63,7 @@ int aml_regmap_update_bits(u32 bus_type,
63
63
unsigned int reg , unsigned int mask ,
64
64
unsigned int val )
65
65
{
66
- if (( bus_type >= IO_CBUS_BASE ) && ( bus_type < IO_BUS_MAX ) ) {
66
+ if (bus_type < IO_BUS_MAX ) {
67
67
unsigned int tmp , orig ;
68
68
69
69
aml_reg_read (bus_type , reg , & orig );
You can’t perform that action at this time.
0 commit comments