diff options
author | Dennis Munsie <dmunsie@cecropia.com> | 2006-06-20 14:55:55 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-07-03 05:04:37 -0400 |
commit | 7627899b11ece118b46fbf652e944f9a239f6cd1 (patch) | |
tree | cd0e9e56a144193b64885fb6a1eb3a2068e4f168 /drivers/video/intelfb/intelfbdrv.c | |
parent | 1f6e8449e11fd79ee30456ce7ec973317b8dd6ae (diff) |
intelfb: add preliminary i2c support
Adds code to unregister the I2C buses in the cleanup function.
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com>
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index f412b5ab8f98..f6e30b3d1081 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -474,6 +474,11 @@ cleanup(struct intelfb_info *dinfo) | |||
474 | agp_free_memory(dinfo->gtt_ring_mem); | 474 | agp_free_memory(dinfo->gtt_ring_mem); |
475 | } | 475 | } |
476 | 476 | ||
477 | #ifdef CONFIG_FB_INTEL_I2C | ||
478 | /* un-register I2C bus */ | ||
479 | intelfb_delete_i2c_busses(dinfo); | ||
480 | #endif | ||
481 | |||
477 | if (dinfo->mmio_base) | 482 | if (dinfo->mmio_base) |
478 | iounmap((void __iomem *)dinfo->mmio_base); | 483 | iounmap((void __iomem *)dinfo->mmio_base); |
479 | if (dinfo->aperture.virtual) | 484 | if (dinfo->aperture.virtual) |