Skip to content

Commit

Permalink
net: ipa: get rid of ipa->reg_addr
Browse files Browse the repository at this point in the history
The reg_addr field in the IPA structure is set but never used.
Get rid of it.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alex Elder authored and David S. Miller committed Feb 10, 2023
1 parent 2df181f commit 38028e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ipa/ipa.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ struct ipa_interrupt;
* @interrupt: IPA Interrupt information
* @uc_powered: true if power is active by proxy for microcontroller
* @uc_loaded: true after microcontroller has reported it's ready
* @reg_addr: DMA address used for IPA register access
* @reg_virt: Virtual address used for IPA register access
* @regs: IPA register definitions
* @mem_addr: DMA address of IPA-local memory space
Expand Down Expand Up @@ -97,7 +96,6 @@ struct ipa {
bool uc_powered;
bool uc_loaded;

dma_addr_t reg_addr;
void __iomem *reg_virt;
const struct ipa_regs *regs;

Expand Down
1 change: 0 additions & 1 deletion drivers/net/ipa/ipa_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ int ipa_reg_init(struct ipa *ipa)
dev_err(dev, "unable to remap \"ipa-reg\" memory\n");
return -ENOMEM;
}
ipa->reg_addr = res->start;
ipa->regs = regs;

return 0;
Expand Down

0 comments on commit 38028e6

Please sign in to comment.