aboutsummaryrefslogtreecommitdiff
path: root/drivers/nvme/nvme.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvme/nvme.h')
-rw-r--r--drivers/nvme/nvme.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h
index 0e8cb22..aa4b3ba 100644
--- a/drivers/nvme/nvme.h
+++ b/drivers/nvme/nvme.h
@@ -535,28 +535,20 @@ struct nvme_completion {
*/
static inline u64 nvme_readq(__le64 volatile *regs)
{
-#if BITS_PER_LONG == 64
- return readq(regs);
-#else
__u32 *ptr = (__u32 *)regs;
u64 val_lo = readl(ptr);
u64 val_hi = readl(ptr + 1);
return val_lo + (val_hi << 32);
-#endif
}
static inline void nvme_writeq(const u64 val, __le64 volatile *regs)
{
-#if BITS_PER_LONG == 64
- writeq(val, regs);
-#else
__u32 *ptr = (__u32 *)regs;
u32 val_lo = lower_32_bits(val);
u32 val_hi = upper_32_bits(val);
writel(val_lo, ptr);
writel(val_hi, ptr + 1);
-#endif
}
struct nvme_bar {