diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-11-15 06:50:27 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-11-20 09:58:55 -0500 |
commit | a3fc74bc9bd8ffd1f2352a2053e906d1efad870d (patch) | |
tree | 45b3c28a4df601025857b064777dc7c64dabd00a /drivers/dma | |
parent | 1611f872513735ac7105535689c0dd668fbf1c04 (diff) |
dma: mv_xor: use dev_(err|info|notice) instead of dev_printk
The usage of dev_printk() is deprecated, and the dev_err(), dev_info()
and dev_notice() functions should be used instead.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/mv_xor.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index e362e2b80efb..610d0b886cd6 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
@@ -206,9 +206,9 @@ static void mv_set_mode(struct mv_xor_chan *chan, | |||
206 | op_mode = XOR_OPERATION_MODE_MEMSET; | 206 | op_mode = XOR_OPERATION_MODE_MEMSET; |
207 | break; | 207 | break; |
208 | default: | 208 | default: |
209 | dev_printk(KERN_ERR, chan->device->common.dev, | 209 | dev_err(chan->device->common.dev, |
210 | "error: unsupported operation %d.\n", | 210 | "error: unsupported operation %d.\n", |
211 | type); | 211 | type); |
212 | BUG(); | 212 | BUG(); |
213 | return; | 213 | return; |
214 | } | 214 | } |
@@ -828,28 +828,28 @@ static void mv_dump_xor_regs(struct mv_xor_chan *chan) | |||
828 | u32 val; | 828 | u32 val; |
829 | 829 | ||
830 | val = __raw_readl(XOR_CONFIG(chan)); | 830 | val = __raw_readl(XOR_CONFIG(chan)); |
831 | dev_printk(KERN_ERR, chan->device->common.dev, | 831 | dev_err(chan->device->common.dev, |
832 | "config 0x%08x.\n", val); | 832 | "config 0x%08x.\n", val); |
833 | 833 | ||
834 | val = __raw_readl(XOR_ACTIVATION(chan)); | 834 | val = __raw_readl(XOR_ACTIVATION(chan)); |
835 | dev_printk(KERN_ERR, chan->device->common.dev, | 835 | dev_err(chan->device->common.dev, |
836 | "activation 0x%08x.\n", val); | 836 | "activation 0x%08x.\n", val); |
837 | 837 | ||
838 | val = __raw_readl(XOR_INTR_CAUSE(chan)); | 838 | val = __raw_readl(XOR_INTR_CAUSE(chan)); |
839 | dev_printk(KERN_ERR, chan->device->common.dev, | 839 | dev_err(chan->device->common.dev, |
840 | "intr cause 0x%08x.\n", val); | 840 | "intr cause 0x%08x.\n", val); |
841 | 841 | ||
842 | val = __raw_readl(XOR_INTR_MASK(chan)); | 842 | val = __raw_readl(XOR_INTR_MASK(chan)); |
843 | dev_printk(KERN_ERR, chan->device->common.dev, | 843 | dev_err(chan->device->common.dev, |
844 | "intr mask 0x%08x.\n", val); | 844 | "intr mask 0x%08x.\n", val); |
845 | 845 | ||
846 | val = __raw_readl(XOR_ERROR_CAUSE(chan)); | 846 | val = __raw_readl(XOR_ERROR_CAUSE(chan)); |
847 | dev_printk(KERN_ERR, chan->device->common.dev, | 847 | dev_err(chan->device->common.dev, |
848 | "error cause 0x%08x.\n", val); | 848 | "error cause 0x%08x.\n", val); |
849 | 849 | ||
850 | val = __raw_readl(XOR_ERROR_ADDR(chan)); | 850 | val = __raw_readl(XOR_ERROR_ADDR(chan)); |
851 | dev_printk(KERN_ERR, chan->device->common.dev, | 851 | dev_err(chan->device->common.dev, |
852 | "error addr 0x%08x.\n", val); | 852 | "error addr 0x%08x.\n", val); |
853 | } | 853 | } |
854 | 854 | ||
855 | static void mv_xor_err_interrupt_handler(struct mv_xor_chan *chan, | 855 | static void mv_xor_err_interrupt_handler(struct mv_xor_chan *chan, |
@@ -861,9 +861,9 @@ static void mv_xor_err_interrupt_handler(struct mv_xor_chan *chan, | |||
861 | return; | 861 | return; |
862 | } | 862 | } |
863 | 863 | ||
864 | dev_printk(KERN_ERR, chan->device->common.dev, | 864 | dev_err(chan->device->common.dev, |
865 | "error on chan %d. intr cause 0x%08x.\n", | 865 | "error on chan %d. intr cause 0x%08x.\n", |
866 | chan->idx, intr_cause); | 866 | chan->idx, intr_cause); |
867 | 867 | ||
868 | mv_dump_xor_regs(chan); | 868 | mv_dump_xor_regs(chan); |
869 | BUG(); | 869 | BUG(); |
@@ -950,8 +950,8 @@ static int __devinit mv_xor_memcpy_self_test(struct mv_xor_device *device) | |||
950 | 950 | ||
951 | if (mv_xor_status(dma_chan, cookie, NULL) != | 951 | if (mv_xor_status(dma_chan, cookie, NULL) != |
952 | DMA_SUCCESS) { | 952 | DMA_SUCCESS) { |
953 | dev_printk(KERN_ERR, dma_chan->device->dev, | 953 | dev_err(dma_chan->device->dev, |
954 | "Self-test copy timed out, disabling\n"); | 954 | "Self-test copy timed out, disabling\n"); |
955 | err = -ENODEV; | 955 | err = -ENODEV; |
956 | goto free_resources; | 956 | goto free_resources; |
957 | } | 957 | } |
@@ -960,8 +960,8 @@ static int __devinit mv_xor_memcpy_self_test(struct mv_xor_device *device) | |||
960 | dma_sync_single_for_cpu(&mv_chan->device->pdev->dev, dest_dma, | 960 | dma_sync_single_for_cpu(&mv_chan->device->pdev->dev, dest_dma, |
961 | MV_XOR_TEST_SIZE, DMA_FROM_DEVICE); | 961 | MV_XOR_TEST_SIZE, DMA_FROM_DEVICE); |
962 | if (memcmp(src, dest, MV_XOR_TEST_SIZE)) { | 962 | if (memcmp(src, dest, MV_XOR_TEST_SIZE)) { |
963 | dev_printk(KERN_ERR, dma_chan->device->dev, | 963 | dev_err(dma_chan->device->dev, |
964 | "Self-test copy failed compare, disabling\n"); | 964 | "Self-test copy failed compare, disabling\n"); |
965 | err = -ENODEV; | 965 | err = -ENODEV; |
966 | goto free_resources; | 966 | goto free_resources; |
967 | } | 967 | } |
@@ -1048,8 +1048,8 @@ mv_xor_xor_self_test(struct mv_xor_device *device) | |||
1048 | 1048 | ||
1049 | if (mv_xor_status(dma_chan, cookie, NULL) != | 1049 | if (mv_xor_status(dma_chan, cookie, NULL) != |
1050 | DMA_SUCCESS) { | 1050 | DMA_SUCCESS) { |
1051 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1051 | dev_err(dma_chan->device->dev, |
1052 | "Self-test xor timed out, disabling\n"); | 1052 | "Self-test xor timed out, disabling\n"); |
1053 | err = -ENODEV; | 1053 | err = -ENODEV; |
1054 | goto free_resources; | 1054 | goto free_resources; |
1055 | } | 1055 | } |
@@ -1060,10 +1060,10 @@ mv_xor_xor_self_test(struct mv_xor_device *device) | |||
1060 | for (i = 0; i < (PAGE_SIZE / sizeof(u32)); i++) { | 1060 | for (i = 0; i < (PAGE_SIZE / sizeof(u32)); i++) { |
1061 | u32 *ptr = page_address(dest); | 1061 | u32 *ptr = page_address(dest); |
1062 | if (ptr[i] != cmp_word) { | 1062 | if (ptr[i] != cmp_word) { |
1063 | dev_printk(KERN_ERR, dma_chan->device->dev, | 1063 | dev_err(dma_chan->device->dev, |
1064 | "Self-test xor failed compare, disabling." | 1064 | "Self-test xor failed compare, disabling." |
1065 | " index %d, data %x, expected %x\n", i, | 1065 | " index %d, data %x, expected %x\n", i, |
1066 | ptr[i], cmp_word); | 1066 | ptr[i], cmp_word); |
1067 | err = -ENODEV; | 1067 | err = -ENODEV; |
1068 | goto free_resources; | 1068 | goto free_resources; |
1069 | } | 1069 | } |
@@ -1212,7 +1212,7 @@ static int __devinit mv_xor_probe(struct platform_device *pdev) | |||
1212 | goto err_free_dma; | 1212 | goto err_free_dma; |
1213 | } | 1213 | } |
1214 | 1214 | ||
1215 | dev_printk(KERN_INFO, &pdev->dev, "Marvell XOR: " | 1215 | dev_info(&pdev->dev, "Marvell XOR: " |
1216 | "( %s%s%s%s)\n", | 1216 | "( %s%s%s%s)\n", |
1217 | dma_has_cap(DMA_XOR, dma_dev->cap_mask) ? "xor " : "", | 1217 | dma_has_cap(DMA_XOR, dma_dev->cap_mask) ? "xor " : "", |
1218 | dma_has_cap(DMA_MEMSET, dma_dev->cap_mask) ? "fill " : "", | 1218 | dma_has_cap(DMA_MEMSET, dma_dev->cap_mask) ? "fill " : "", |
@@ -1275,7 +1275,7 @@ static int mv_xor_shared_probe(struct platform_device *pdev) | |||
1275 | struct mv_xor_shared_private *msp; | 1275 | struct mv_xor_shared_private *msp; |
1276 | struct resource *res; | 1276 | struct resource *res; |
1277 | 1277 | ||
1278 | dev_printk(KERN_NOTICE, &pdev->dev, "Marvell shared XOR driver\n"); | 1278 | dev_notice(&pdev->dev, "Marvell shared XOR driver\n"); |
1279 | 1279 | ||
1280 | msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL); | 1280 | msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL); |
1281 | if (!msp) | 1281 | if (!msp) |