mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 16:53:20 -04:00
ipack: tpci200: Don't store pci_device_id
pci_device_id is not guaranteed to live longer than probe due to presence of dynamic ID. This stored ID is unused so remove it. Signed-off-by: Gary Guo <gary@garyguo.net> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260723-pci_id_fix-v4-3-3580726844e1@garyguo.net
This commit is contained in:
@@ -562,7 +562,6 @@ static int tpci200_pci_probe(struct pci_dev *pdev,
|
||||
|
||||
/* Save struct pci_dev pointer */
|
||||
tpci200->info->pdev = pdev;
|
||||
tpci200->info->id_table = (struct pci_device_id *)id;
|
||||
|
||||
/* register the device and initialize it */
|
||||
ret = tpci200_install(tpci200);
|
||||
|
||||
@@ -145,7 +145,6 @@ struct tpci200_slot {
|
||||
*/
|
||||
struct tpci200_infos {
|
||||
struct pci_dev *pdev;
|
||||
struct pci_device_id *id_table;
|
||||
struct tpci200_regs __iomem *interface_regs;
|
||||
void __iomem *cfg_regs;
|
||||
struct ipack_bus_device *ipack_bus;
|
||||
|
||||
Reference in New Issue
Block a user