]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:30:10 +0000 (23:30 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2023 14:42:25 +0000 (10:42 -0400)
The last user of the NEEDS_MANUAL_RELOC has been removed in commit
26af162ac8f8 ("arch: m68k: Implement relocation")
Remove now unused NEEDS_MANUAL_RELOC code.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/serial/serial-uclass.c
drivers/serial/serial.c

index e954f0189bbddff3fd84a2628a7d095ff62e54e2..5e2e7dfbcb315f490939933f32018e5c8428cbac 100644 (file)
@@ -508,28 +508,6 @@ static int serial_post_probe(struct udevice *dev)
 #endif
        int ret;
 
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-       if (ops->setbrg)
-               ops->setbrg += gd->reloc_off;
-       if (ops->getc)
-               ops->getc += gd->reloc_off;
-       if (ops->putc)
-               ops->putc += gd->reloc_off;
-       if (ops->pending)
-               ops->pending += gd->reloc_off;
-       if (ops->clear)
-               ops->clear += gd->reloc_off;
-       if (ops->getconfig)
-               ops->getconfig += gd->reloc_off;
-       if (ops->setconfig)
-               ops->setconfig += gd->reloc_off;
-#if CFG_POST & CFG_SYS_POST_UART
-       if (ops->loop)
-               ops->loop += gd->reloc_off;
-#endif
-       if (ops->getinfo)
-               ops->getinfo += gd->reloc_off;
-#endif
        /* Set the baud rate */
        if (ops->setbrg) {
                ret = ops->setbrg(dev, gd->baudrate);
index 9a380d7c5e7e0401296ce4b656406ada6a3d70b3..787edd5360277ca0300edd22dcccfd0f0231494f 100644 (file)
@@ -142,23 +142,6 @@ serial_initfunc(mtk_serial_initialize);
  */
 void serial_register(struct serial_device *dev)
 {
-#ifdef CONFIG_NEEDS_MANUAL_RELOC
-       if (dev->start)
-               dev->start += gd->reloc_off;
-       if (dev->stop)
-               dev->stop += gd->reloc_off;
-       if (dev->setbrg)
-               dev->setbrg += gd->reloc_off;
-       if (dev->getc)
-               dev->getc += gd->reloc_off;
-       if (dev->tstc)
-               dev->tstc += gd->reloc_off;
-       if (dev->putc)
-               dev->putc += gd->reloc_off;
-       if (dev->puts)
-               dev->puts += gd->reloc_off;
-#endif
-
        dev->next = serial_devices;
        serial_devices = dev;
 }