Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321653
b: refs/heads/master
c: cee2516
h: refs/heads/master
i:
  321651: 66d0cdb
v: v3
  • Loading branch information
Jani Nikula authored and Daniel Vetter committed Aug 13, 2012
1 parent 2cbb536 commit a67805b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4344b813f105a19f793f1fd93ad775b784648b95
refs/heads/master: cee25168e9c4ef7f9417632af2dc78b8521dfda7
7 changes: 4 additions & 3 deletions trunk/drivers/gpu/drm/i915/intel_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,6 @@ int intel_setup_gmbus(struct drm_device *dev)
bus->dev_priv = dev_priv;

bus->adapter.algo = &gmbus_algorithm;
ret = i2c_add_adapter(&bus->adapter);
if (ret)
goto err;

/* By default use a conservative clock rate */
bus->reg0 = port | GMBUS_RATE_100KHZ;
Expand All @@ -498,6 +495,10 @@ int intel_setup_gmbus(struct drm_device *dev)
bus->force_bit = true;

intel_gpio_setup(bus, port);

ret = i2c_add_adapter(&bus->adapter);
if (ret)
goto err;
}

intel_i2c_reset(dev_priv->dev);
Expand Down

0 comments on commit a67805b

Please sign in to comment.