hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/pci/hotplug/acpiphp_ibm.c
....@@ -41,7 +41,7 @@
4141 #define IBM_HARDWARE_ID1 "IBM37D0"
4242 #define IBM_HARDWARE_ID2 "IBM37D4"
4343
44
-#define hpslot_to_sun(A) (((struct slot *)((A)->private))->sun)
44
+#define hpslot_to_sun(A) (to_slot(A)->sun)
4545
4646 /* union apci_descriptor - allows access to the
4747 * various device descriptors that are embedded in the