Skip to content

Commit 5e2664f

Browse files
Chen NiMani-Sadhasivam
authored andcommitted
PCI: ls-gen4: Use to_delayed_work()
Use to_delayed_work() instead of open-coding it. Signed-off-by: Chen Ni <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 0af2f6b commit 5e2664f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ static int ls_g4_pcie_interrupt_init(struct mobiveil_pcie *mv_pci)
174174

175175
static void ls_g4_pcie_reset(struct work_struct *work)
176176
{
177-
struct delayed_work *dwork = container_of(work, struct delayed_work,
178-
work);
177+
struct delayed_work *dwork = to_delayed_work(work);
179178
struct ls_g4_pcie *pcie = container_of(dwork, struct ls_g4_pcie, dwork);
180179
struct mobiveil_pcie *mv_pci = &pcie->pci;
181180
u16 ctrl;

0 commit comments

Comments
 (0)