bootmeth_pxe: Drop the driver-private data

Since this driver's plat-data already contains a PXE context, use that.
Drop the priv-data. Use the extlinux_info which is in there, as well.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2024-12-05 19:36:18 -07:00
parent 178bfbad7f
commit c4ec5afb7b

View File

@@ -140,7 +140,7 @@ static int extlinux_pxe_read_file(struct udevice *dev, struct bootflow *bflow,
static int extlinux_pxe_boot(struct udevice *dev, struct bootflow *bflow)
{
struct extlinux_plat *plat = dev_get_plat(dev);
struct pxe_context *ctx = dev_get_priv(dev);
struct pxe_context *ctx = &plat->ctx;
ulong addr;
int ret;
@@ -188,6 +188,5 @@ U_BOOT_DRIVER(bootmeth_zpxe) = {
.of_match = extlinux_bootmeth_pxe_ids,
.ops = &extlinux_bootmeth_pxe_ops,
.bind = extlinux_bootmeth_pxe_bind,
.priv_auto = sizeof(struct pxe_context),
.plat_auto = sizeof(struct extlinux_plat)
};