Commit fd498bba authored by YueHaibing's avatar YueHaibing Committed by Takashi Iwai

ALSA: trident: Fix build error

sound/pci/trident/trident_memory.c: In function ‘set_tlb_bus’:
sound/pci/trident/trident_memory.c:85:35: error: ‘pagetr’ undeclared (first use in this function); did you mean ‘page’?
  for (i = 0; i < UNIT_PAGES; i++, pagetr++) {
                                   ^~~~~~
                                   page

Fixes: 74fb9831 ("ALSA: trident: Drop shadow TLB pointer table")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20210612033458.42928-1-yuehaibing@huawei.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 93cd12d6
......@@ -82,7 +82,7 @@ static inline void set_tlb_bus(struct snd_trident *trident, int page,
{
int i;
page *= UNIT_PAGES;
for (i = 0; i < UNIT_PAGES; i++, pagetr++) {
for (i = 0; i < UNIT_PAGES; i++, page++) {
__set_tlb_bus(trident, page, addr);
addr += SNDRV_TRIDENT_PAGE_SIZE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment