Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mmc: dw_mmc: Remove unused register access macros

The mci_readw/mci_writew/mci_readq/mci_writeq macros were added
to provide 16-bit and 64-bit register access operations, but they
have remained unused since their introduction. Remove these dead code.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Shawn Lin and committed by
Ulf Hansson
c6969a13 7597d68c

+1 -26
+1 -26
drivers/mmc/host/dw_mmc.h
··· 488 488 #define mci_writel(dev, reg, value) \ 489 489 writel_relaxed((value), (dev)->regs + SDMMC_##reg) 490 490 491 - /* 16-bit FIFO access macros */ 492 - #define mci_readw(dev, reg) \ 493 - readw_relaxed((dev)->regs + SDMMC_##reg) 494 - #define mci_writew(dev, reg, value) \ 495 - writew_relaxed((value), (dev)->regs + SDMMC_##reg) 496 - 497 - /* 64-bit FIFO access macros */ 498 - #ifdef readq 499 - #define mci_readq(dev, reg) \ 500 - readq_relaxed((dev)->regs + SDMMC_##reg) 501 - #define mci_writeq(dev, reg, value) \ 502 - writeq_relaxed((value), (dev)->regs + SDMMC_##reg) 503 - #else 504 - /* 505 - * Dummy readq implementation for architectures that don't define it. 506 - * 507 - * We would assume that none of these architectures would configure 508 - * the IP block with a 64bit FIFO width, so this code will never be 509 - * executed on those machines. Defining these macros here keeps the 510 - * rest of the code free from ifdefs. 511 - */ 512 - #define mci_readq(dev, reg) \ 513 - (*(volatile u64 __force *)((dev)->regs + SDMMC_##reg)) 514 - #define mci_writeq(dev, reg, value) \ 515 - (*(volatile u64 __force *)((dev)->regs + SDMMC_##reg) = (value)) 516 - 491 + #ifndef readq 517 492 #define __raw_writeq(__value, __reg) \ 518 493 (*(volatile u64 __force *)(__reg) = (__value)) 519 494 #define __raw_readq(__reg) (*(volatile u64 __force *)(__reg))