diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-mv64xxx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 2e9d56719e99..8b20ef8524ac 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c | |||
@@ -495,7 +495,7 @@ static const struct i2c_algorithm mv64xxx_i2c_algo = { | |||
495 | * | 495 | * |
496 | ***************************************************************************** | 496 | ***************************************************************************** |
497 | */ | 497 | */ |
498 | static int __devinit | 498 | static int |
499 | mv64xxx_i2c_map_regs(struct platform_device *pd, | 499 | mv64xxx_i2c_map_regs(struct platform_device *pd, |
500 | struct mv64xxx_i2c_data *drv_data) | 500 | struct mv64xxx_i2c_data *drv_data) |
501 | { | 501 | { |
@@ -530,13 +530,13 @@ mv64xxx_i2c_unmap_regs(struct mv64xxx_i2c_data *drv_data) | |||
530 | } | 530 | } |
531 | 531 | ||
532 | #ifdef CONFIG_OF | 532 | #ifdef CONFIG_OF |
533 | static int __devinit | 533 | static int |
534 | mv64xxx_calc_freq(const int tclk, const int n, const int m) | 534 | mv64xxx_calc_freq(const int tclk, const int n, const int m) |
535 | { | 535 | { |
536 | return tclk / (10 * (m + 1) * (2 << n)); | 536 | return tclk / (10 * (m + 1) * (2 << n)); |
537 | } | 537 | } |
538 | 538 | ||
539 | static bool __devinit | 539 | static bool |
540 | mv64xxx_find_baud_factors(const u32 req_freq, const u32 tclk, u32 *best_n, | 540 | mv64xxx_find_baud_factors(const u32 req_freq, const u32 tclk, u32 *best_n, |
541 | u32 *best_m) | 541 | u32 *best_m) |
542 | { | 542 | { |
@@ -560,7 +560,7 @@ mv64xxx_find_baud_factors(const u32 req_freq, const u32 tclk, u32 *best_n, | |||
560 | return true; | 560 | return true; |
561 | } | 561 | } |
562 | 562 | ||
563 | static int __devinit | 563 | static int |
564 | mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, | 564 | mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, |
565 | struct device_node *np) | 565 | struct device_node *np) |
566 | { | 566 | { |
@@ -597,7 +597,7 @@ out: | |||
597 | #endif | 597 | #endif |
598 | } | 598 | } |
599 | #else /* CONFIG_OF */ | 599 | #else /* CONFIG_OF */ |
600 | static int __devinit | 600 | static int |
601 | mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, | 601 | mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, |
602 | struct device_node *np) | 602 | struct device_node *np) |
603 | { | 603 | { |
@@ -605,7 +605,7 @@ mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, | |||
605 | } | 605 | } |
606 | #endif /* CONFIG_OF */ | 606 | #endif /* CONFIG_OF */ |
607 | 607 | ||
608 | static int __devinit | 608 | static int |
609 | mv64xxx_i2c_probe(struct platform_device *pd) | 609 | mv64xxx_i2c_probe(struct platform_device *pd) |
610 | { | 610 | { |
611 | struct mv64xxx_i2c_data *drv_data; | 611 | struct mv64xxx_i2c_data *drv_data; |
@@ -697,7 +697,7 @@ mv64xxx_i2c_probe(struct platform_device *pd) | |||
697 | return rc; | 697 | return rc; |
698 | } | 698 | } |
699 | 699 | ||
700 | static int __devexit | 700 | static int |
701 | mv64xxx_i2c_remove(struct platform_device *dev) | 701 | mv64xxx_i2c_remove(struct platform_device *dev) |
702 | { | 702 | { |
703 | struct mv64xxx_i2c_data *drv_data = platform_get_drvdata(dev); | 703 | struct mv64xxx_i2c_data *drv_data = platform_get_drvdata(dev); |
@@ -718,7 +718,7 @@ mv64xxx_i2c_remove(struct platform_device *dev) | |||
718 | return rc; | 718 | return rc; |
719 | } | 719 | } |
720 | 720 | ||
721 | static const struct of_device_id mv64xxx_i2c_of_match_table[] __devinitdata = { | 721 | static const struct of_device_id mv64xxx_i2c_of_match_table[] = { |
722 | { .compatible = "marvell,mv64xxx-i2c", }, | 722 | { .compatible = "marvell,mv64xxx-i2c", }, |
723 | {} | 723 | {} |
724 | }; | 724 | }; |
@@ -726,7 +726,7 @@ MODULE_DEVICE_TABLE(of, mv64xxx_i2c_of_match_table); | |||
726 | 726 | ||
727 | static struct platform_driver mv64xxx_i2c_driver = { | 727 | static struct platform_driver mv64xxx_i2c_driver = { |
728 | .probe = mv64xxx_i2c_probe, | 728 | .probe = mv64xxx_i2c_probe, |
729 | .remove = __devexit_p(mv64xxx_i2c_remove), | 729 | .remove = mv64xxx_i2c_remove, |
730 | .driver = { | 730 | .driver = { |
731 | .owner = THIS_MODULE, | 731 | .owner = THIS_MODULE, |
732 | .name = MV64XXX_I2C_CTLR_NAME, | 732 | .name = MV64XXX_I2C_CTLR_NAME, |