Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249047
b: refs/heads/master
c: 8a789f8
h: refs/heads/master
i:
  249045: 92145b9
  249043: e229278
  249039: 720b85d
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent cd6c92f commit c21b212
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 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: cb048d558690ba1468e6bb26b82594b4330fb21c
refs/heads/master: 8a789f8c306b5e3fe6ef71bb5412055075d8c87f
2 changes: 1 addition & 1 deletion trunk/drivers/staging/gma500/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config DRM_PSB
tristate "Intel GMA500 KMS Framebuffer"
depends on DRM && PCI
depends on DRM && PCI && X86
select FB_CFB_COPYAREA
select FB_CFB_FILLRECT
select FB_CFB_IMAGEBLIT
Expand Down
11 changes: 10 additions & 1 deletion trunk/drivers/staging/gma500/mrst_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <linux/i2c.h>
#include <drm/drmP.h>
#include <asm/mrst.h>

#include "psb_intel_bios.h"
#include "psb_drv.h"
Expand Down Expand Up @@ -300,7 +301,15 @@ void mrst_lvds_init(struct drm_device *dev,
* 4) make sure lid is open
* if closed, act like it's not there for now
*/
i2c_adap = i2c_get_adapter(2);

/* This ifdef can go once the cpu ident stuff is cleaned up in arch */
#if defined(CONFIG_X86_MRST)
if (mrst_identify_cpu())
i2c_adap = i2c_get_adapter(2);
else /* Oaktrail uses I2C 1 */
#endif
i2c_adap = i2c_get_adapter(1);

if (i2c_adap == NULL)
printk(KERN_ALERT "No ddc adapter available!\n");
/*
Expand Down

0 comments on commit c21b212

Please sign in to comment.