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 <nichen@iscas.ac.cn> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://patch.msgid.link/20250414074241.3954081-1-nichen@iscas.ac.cn
1 parent 0af2f6b commit 5e2664f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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)