summaryrefslogtreecommitdiffstats
path: root/drivers/ssb/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ssb/pci.c')
-rw-r--r--drivers/ssb/pci.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
index ad4308529eba..84807a9b4b13 100644
--- a/drivers/ssb/pci.c
+++ b/drivers/ssb/pci.c
@@ -946,7 +946,6 @@ out:
946 return err; 946 return err;
947} 947}
948 948
949#ifdef CONFIG_SSB_DEBUG
950static int ssb_pci_assert_buspower(struct ssb_bus *bus) 949static int ssb_pci_assert_buspower(struct ssb_bus *bus)
951{ 950{
952 if (likely(bus->powered_up)) 951 if (likely(bus->powered_up))
@@ -960,12 +959,6 @@ static int ssb_pci_assert_buspower(struct ssb_bus *bus)
960 959
961 return -ENODEV; 960 return -ENODEV;
962} 961}
963#else /* DEBUG */
964static inline int ssb_pci_assert_buspower(struct ssb_bus *bus)
965{
966 return 0;
967}
968#endif /* DEBUG */
969 962
970static u8 ssb_pci_read8(struct ssb_device *dev, u16 offset) 963static u8 ssb_pci_read8(struct ssb_device *dev, u16 offset)
971{ 964{
@@ -1024,15 +1017,15 @@ static void ssb_pci_block_read(struct ssb_device *dev, void *buffer,
1024 ioread8_rep(addr, buffer, count); 1017 ioread8_rep(addr, buffer, count);
1025 break; 1018 break;
1026 case sizeof(u16): 1019 case sizeof(u16):
1027 SSB_WARN_ON(count & 1); 1020 WARN_ON(count & 1);
1028 ioread16_rep(addr, buffer, count >> 1); 1021 ioread16_rep(addr, buffer, count >> 1);
1029 break; 1022 break;
1030 case sizeof(u32): 1023 case sizeof(u32):
1031 SSB_WARN_ON(count & 3); 1024 WARN_ON(count & 3);
1032 ioread32_rep(addr, buffer, count >> 2); 1025 ioread32_rep(addr, buffer, count >> 2);
1033 break; 1026 break;
1034 default: 1027 default:
1035 SSB_WARN_ON(1); 1028 WARN_ON(1);
1036 } 1029 }
1037 1030
1038 return; 1031 return;
@@ -1098,15 +1091,15 @@ static void ssb_pci_block_write(struct ssb_device *dev, const void *buffer,
1098 iowrite8_rep(addr, buffer, count); 1091 iowrite8_rep(addr, buffer, count);
1099 break; 1092 break;
1100 case sizeof(u16): 1093 case sizeof(u16):
1101 SSB_WARN_ON(count & 1); 1094 WARN_ON(count & 1);
1102 iowrite16_rep(addr, buffer, count >> 1); 1095 iowrite16_rep(addr, buffer, count >> 1);
1103 break; 1096 break;
1104 case sizeof(u32): 1097 case sizeof(u32):
1105 SSB_WARN_ON(count & 3); 1098 WARN_ON(count & 3);
1106 iowrite32_rep(addr, buffer, count >> 2); 1099 iowrite32_rep(addr, buffer, count >> 2);
1107 break; 1100 break;
1108 default: 1101 default:
1109 SSB_WARN_ON(1); 1102 WARN_ON(1);
1110 } 1103 }
1111} 1104}
1112#endif /* CONFIG_SSB_BLOCKIO */ 1105#endif /* CONFIG_SSB_BLOCKIO */