diff options
author | Benoit Cousson <b-cousson@ti.com> | 2010-12-21 23:08:34 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 23:31:00 -0500 |
commit | 50ebb7772c8975086dbfc3d21be74dd806650df4 (patch) | |
tree | b172edbb6a46cd25d838d266aa9b751055640b70 | |
parent | 5a7ddcbdaf1bb7603422fb6188156ccc39711b0f (diff) |
OMAP2430: hwmod data: Use common dev_attr for i2c1 and i2c2
Since i2c1 and i2c2 are using the same data, remove the two previous
instances and use a common i2c_dev_attr one.
Moreover, that will fix the following warning:
arch/arm/mach-omap2/omap_hwmod_2430_data.c:485:
warning: 'i2c_dev_attr' defined but not used
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Charulatha V <charu@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_2430_data.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c index 3c2c724796a2..8ecfbcde13ba 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c | |||
@@ -483,12 +483,12 @@ static struct omap_hwmod_class i2c_class = { | |||
483 | .sysc = &i2c_sysc, | 483 | .sysc = &i2c_sysc, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | /* I2C1 */ | 486 | static struct omap_i2c_dev_attr i2c_dev_attr = { |
487 | |||
488 | static struct omap_i2c_dev_attr i2c1_dev_attr = { | ||
489 | .fifo_depth = 8, /* bytes */ | 487 | .fifo_depth = 8, /* bytes */ |
490 | }; | 488 | }; |
491 | 489 | ||
490 | /* I2C1 */ | ||
491 | |||
492 | static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = { | 492 | static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = { |
493 | { .irq = INT_24XX_I2C1_IRQ, }, | 493 | { .irq = INT_24XX_I2C1_IRQ, }, |
494 | }; | 494 | }; |
@@ -529,16 +529,12 @@ static struct omap_hwmod omap2430_i2c1_hwmod = { | |||
529 | .slaves = omap2430_i2c1_slaves, | 529 | .slaves = omap2430_i2c1_slaves, |
530 | .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves), | 530 | .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves), |
531 | .class = &i2c_class, | 531 | .class = &i2c_class, |
532 | .dev_attr = &i2c1_dev_attr, | 532 | .dev_attr = &i2c_dev_attr, |
533 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), | 533 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), |
534 | }; | 534 | }; |
535 | 535 | ||
536 | /* I2C2 */ | 536 | /* I2C2 */ |
537 | 537 | ||
538 | static struct omap_i2c_dev_attr i2c2_dev_attr = { | ||
539 | .fifo_depth = 8, /* bytes */ | ||
540 | }; | ||
541 | |||
542 | static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = { | 538 | static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = { |
543 | { .irq = INT_24XX_I2C2_IRQ, }, | 539 | { .irq = INT_24XX_I2C2_IRQ, }, |
544 | }; | 540 | }; |
@@ -571,7 +567,7 @@ static struct omap_hwmod omap2430_i2c2_hwmod = { | |||
571 | .slaves = omap2430_i2c2_slaves, | 567 | .slaves = omap2430_i2c2_slaves, |
572 | .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves), | 568 | .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves), |
573 | .class = &i2c_class, | 569 | .class = &i2c_class, |
574 | .dev_attr = &i2c2_dev_attr, | 570 | .dev_attr = &i2c_dev_attr, |
575 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), | 571 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), |
576 | }; | 572 | }; |
577 | 573 | ||