diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-08-01 05:18:29 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-11 05:16:06 -0500 |
commit | 24d6e5cb191189531396870402bf276aacf01598 (patch) | |
tree | fc10e45c665963b080b3e770e52bbef412600d95 /drivers/video/cyber2000fb.h | |
parent | b7ca01a9b20e3fdd11745227905e9ad8a99e0123 (diff) |
VIDEO: cyberpro: update handling of device structures
Provide the framebuffer device with its correct parent (the PCI
device for PCI connected cards.) Also, use this struct device to
pass to sub-drivers rather than the pci_dev structure, which is
really what they want. Also propagate the assigned IRQ, which
they were getting direct from the PCI device structure.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/video/cyber2000fb.h')
-rw-r--r-- | drivers/video/cyber2000fb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/cyber2000fb.h b/drivers/video/cyber2000fb.h index 814cce5acf12..555c8d4f2b76 100644 --- a/drivers/video/cyber2000fb.h +++ b/drivers/video/cyber2000fb.h | |||
@@ -464,13 +464,14 @@ static void debug_printf(char *fmt, ...) | |||
464 | struct cfb_info; | 464 | struct cfb_info; |
465 | 465 | ||
466 | struct cyberpro_info { | 466 | struct cyberpro_info { |
467 | struct pci_dev *dev; | 467 | struct device *dev; |
468 | struct i2c_adapter *i2c; | 468 | struct i2c_adapter *i2c; |
469 | unsigned char __iomem *regs; | 469 | unsigned char __iomem *regs; |
470 | char __iomem *fb; | 470 | char __iomem *fb; |
471 | char dev_name[32]; | 471 | char dev_name[32]; |
472 | unsigned int fb_size; | 472 | unsigned int fb_size; |
473 | unsigned int chip_id; | 473 | unsigned int chip_id; |
474 | unsigned int irq; | ||
474 | 475 | ||
475 | /* | 476 | /* |
476 | * The following is a pointer to be passed into the | 477 | * The following is a pointer to be passed into the |