diff options
Diffstat (limited to 'drivers/video/riva/rivafb-i2c.c')
-rw-r--r-- | drivers/video/riva/rivafb-i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c index da1334dfd51d..77151d8e0766 100644 --- a/drivers/video/riva/rivafb-i2c.c +++ b/drivers/video/riva/rivafb-i2c.c | |||
@@ -92,14 +92,13 @@ static int riva_gpio_getsda(void* data) | |||
92 | return val; | 92 | return val; |
93 | } | 93 | } |
94 | 94 | ||
95 | #define I2C_ALGO_RIVA 0x0e0000 | ||
96 | static int riva_setup_i2c_bus(struct riva_i2c_chan *chan, const char *name) | 95 | static int riva_setup_i2c_bus(struct riva_i2c_chan *chan, const char *name) |
97 | { | 96 | { |
98 | int rc; | 97 | int rc; |
99 | 98 | ||
100 | strcpy(chan->adapter.name, name); | 99 | strcpy(chan->adapter.name, name); |
101 | chan->adapter.owner = THIS_MODULE; | 100 | chan->adapter.owner = THIS_MODULE; |
102 | chan->adapter.id = I2C_ALGO_RIVA; | 101 | chan->adapter.id = I2C_HW_B_RIVA; |
103 | chan->adapter.algo_data = &chan->algo; | 102 | chan->adapter.algo_data = &chan->algo; |
104 | chan->adapter.dev.parent = &chan->par->pdev->dev; | 103 | chan->adapter.dev.parent = &chan->par->pdev->dev; |
105 | chan->algo.setsda = riva_gpio_setsda; | 104 | chan->algo.setsda = riva_gpio_setsda; |