diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 01:32:25 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-09-30 00:02:33 -0400 |
commit | 3c41aa710846c76400d6e8cf06600cc3eb8cbcc2 (patch) | |
tree | f18fe91c7e01ae5e60d7759b2155e6b3d4454d4f /drivers/i2c | |
parent | ab0dc7a81df2595a18b328d2c7031b00bd7efb1e (diff) |
i2c: bfin-twi: Remove casting the return value which is a void pointer
Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-bfin-twi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-bfin-twi.c b/drivers/i2c/busses/i2c-bfin-twi.c index 35a473ba3d81..3b9bd9a3f2b0 100644 --- a/drivers/i2c/busses/i2c-bfin-twi.c +++ b/drivers/i2c/busses/i2c-bfin-twi.c | |||
@@ -675,7 +675,7 @@ static int i2c_bfin_twi_probe(struct platform_device *pdev) | |||
675 | p_adap->retries = 3; | 675 | p_adap->retries = 3; |
676 | 676 | ||
677 | rc = peripheral_request_list( | 677 | rc = peripheral_request_list( |
678 | (unsigned short *)dev_get_platdata(&pdev->dev), | 678 | dev_get_platdata(&pdev->dev), |
679 | "i2c-bfin-twi"); | 679 | "i2c-bfin-twi"); |
680 | if (rc) { | 680 | if (rc) { |
681 | dev_err(&pdev->dev, "Can't setup pin mux!\n"); | 681 | dev_err(&pdev->dev, "Can't setup pin mux!\n"); |
@@ -723,7 +723,7 @@ out_error_add_adapter: | |||
723 | free_irq(iface->irq, iface); | 723 | free_irq(iface->irq, iface); |
724 | out_error_req_irq: | 724 | out_error_req_irq: |
725 | out_error_no_irq: | 725 | out_error_no_irq: |
726 | peripheral_free_list((unsigned short *)dev_get_platdata(&pdev->dev)); | 726 | peripheral_free_list(dev_get_platdata(&pdev->dev)); |
727 | out_error_pin_mux: | 727 | out_error_pin_mux: |
728 | iounmap(iface->regs_base); | 728 | iounmap(iface->regs_base); |
729 | out_error_ioremap: | 729 | out_error_ioremap: |
@@ -739,7 +739,7 @@ static int i2c_bfin_twi_remove(struct platform_device *pdev) | |||
739 | 739 | ||
740 | i2c_del_adapter(&(iface->adap)); | 740 | i2c_del_adapter(&(iface->adap)); |
741 | free_irq(iface->irq, iface); | 741 | free_irq(iface->irq, iface); |
742 | peripheral_free_list((unsigned short *)dev_get_platdata(&pdev->dev)); | 742 | peripheral_free_list(dev_get_platdata(&pdev->dev)); |
743 | iounmap(iface->regs_base); | 743 | iounmap(iface->regs_base); |
744 | kfree(iface); | 744 | kfree(iface); |
745 | 745 | ||