diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/i2c/busses/i2c-ibm_iic.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/i2c/busses/i2c-ibm_iic.c')
-rw-r--r-- | drivers/i2c/busses/i2c-ibm_iic.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c index 89eedf45d30e..3c110fbc409b 100644 --- a/drivers/i2c/busses/i2c-ibm_iic.c +++ b/drivers/i2c/busses/i2c-ibm_iic.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <asm/irq.h> | 41 | #include <asm/irq.h> |
42 | #include <linux/io.h> | 42 | #include <linux/io.h> |
43 | #include <linux/i2c.h> | 43 | #include <linux/i2c.h> |
44 | #include <linux/i2c-id.h> | ||
45 | #include <linux/of_platform.h> | 44 | #include <linux/of_platform.h> |
46 | #include <linux/of_i2c.h> | 45 | #include <linux/of_i2c.h> |
47 | 46 | ||
@@ -495,7 +494,7 @@ static int iic_xfer_bytes(struct ibm_iic_private* dev, struct i2c_msg* pm, | |||
495 | if (unlikely(ret < 0)) | 494 | if (unlikely(ret < 0)) |
496 | break; | 495 | break; |
497 | else if (unlikely(ret != count)){ | 496 | else if (unlikely(ret != count)){ |
498 | DBG("%d: xfer_bytes, requested %d, transfered %d\n", | 497 | DBG("%d: xfer_bytes, requested %d, transferred %d\n", |
499 | dev->idx, count, ret); | 498 | dev->idx, count, ret); |
500 | 499 | ||
501 | /* If it's not a last part of xfer, abort it */ | 500 | /* If it's not a last part of xfer, abort it */ |
@@ -594,7 +593,7 @@ static int iic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) | |||
594 | if (unlikely((in_8(&iic->extsts) & EXTSTS_BCS_MASK) != EXTSTS_BCS_FREE)){ | 593 | if (unlikely((in_8(&iic->extsts) & EXTSTS_BCS_MASK) != EXTSTS_BCS_FREE)){ |
595 | DBG("%d: iic_xfer, bus is not free\n", dev->idx); | 594 | DBG("%d: iic_xfer, bus is not free\n", dev->idx); |
596 | 595 | ||
597 | /* Usually it means something serious has happend. | 596 | /* Usually it means something serious has happened. |
598 | * We *cannot* have unfinished previous transfer | 597 | * We *cannot* have unfinished previous transfer |
599 | * so it doesn't make any sense to try to stop it. | 598 | * so it doesn't make any sense to try to stop it. |
600 | * Probably we were not able to recover from the | 599 | * Probably we were not able to recover from the |
@@ -692,8 +691,7 @@ static int __devinit iic_request_irq(struct platform_device *ofdev, | |||
692 | /* | 691 | /* |
693 | * Register single IIC interface | 692 | * Register single IIC interface |
694 | */ | 693 | */ |
695 | static int __devinit iic_probe(struct platform_device *ofdev, | 694 | static int __devinit iic_probe(struct platform_device *ofdev) |
696 | const struct of_device_id *match) | ||
697 | { | 695 | { |
698 | struct device_node *np = ofdev->dev.of_node; | 696 | struct device_node *np = ofdev->dev.of_node; |
699 | struct ibm_iic_private *dev; | 697 | struct ibm_iic_private *dev; |
@@ -807,7 +805,7 @@ static const struct of_device_id ibm_iic_match[] = { | |||
807 | {} | 805 | {} |
808 | }; | 806 | }; |
809 | 807 | ||
810 | static struct of_platform_driver ibm_iic_driver = { | 808 | static struct platform_driver ibm_iic_driver = { |
811 | .driver = { | 809 | .driver = { |
812 | .name = "ibm-iic", | 810 | .name = "ibm-iic", |
813 | .owner = THIS_MODULE, | 811 | .owner = THIS_MODULE, |
@@ -819,12 +817,12 @@ static struct of_platform_driver ibm_iic_driver = { | |||
819 | 817 | ||
820 | static int __init iic_init(void) | 818 | static int __init iic_init(void) |
821 | { | 819 | { |
822 | return of_register_platform_driver(&ibm_iic_driver); | 820 | return platform_driver_register(&ibm_iic_driver); |
823 | } | 821 | } |
824 | 822 | ||
825 | static void __exit iic_exit(void) | 823 | static void __exit iic_exit(void) |
826 | { | 824 | { |
827 | of_unregister_platform_driver(&ibm_iic_driver); | 825 | platform_driver_unregister(&ibm_iic_driver); |
828 | } | 826 | } |
829 | 827 | ||
830 | module_init(iic_init); | 828 | module_init(iic_init); |