Skip to content

Commit 9965133

Browse files
committed
Merge branch 'pci/controller/layerscape'
- Make the ls-gen4 struct mobiveil_rp_ops constant (Christophe JAILLET) * pci/controller/layerscape: PCI: ls-gen4: Make struct mobiveil_rp_ops constant
2 parents db2cc94 + cd09a6a commit 9965133

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void ls_g4_pcie_reset(struct work_struct *work)
190190
ls_g4_pcie_enable_interrupt(pcie);
191191
}
192192

193-
static struct mobiveil_rp_ops ls_g4_pcie_rp_ops = {
193+
static const struct mobiveil_rp_ops ls_g4_pcie_rp_ops = {
194194
.interrupt_init = ls_g4_pcie_interrupt_init,
195195
};
196196

drivers/pci/controller/mobiveil/pcie-mobiveil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ struct mobiveil_rp_ops {
151151
struct mobiveil_root_port {
152152
void __iomem *config_axi_slave_base; /* endpoint config base */
153153
struct resource *ob_io_res;
154-
struct mobiveil_rp_ops *ops;
154+
const struct mobiveil_rp_ops *ops;
155155
int irq;
156156
raw_spinlock_t intx_mask_lock;
157157
struct irq_domain *intx_domain;

0 commit comments

Comments
 (0)