Skip to content

Commit

Permalink
Revert "drv: net: ethernet: r8125_vendor add LED configuration from OF"
Browse files Browse the repository at this point in the history
This reverts commit 2be5774.
  • Loading branch information
unifreq committed Jul 1, 2024
1 parent 0207167 commit 47b221f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions drivers/net/ethernet/realtek/r8125_vendor/r8125_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -13644,23 +13644,6 @@ rtl8125_devname_configuration(struct rtl8125_private *tp)
return 0;
}

static int
rtl8125_led_configuration(struct rtl8125_private *tp)
{
u32 led_data;
int ret;

ret = of_property_read_u32(tp->pci_dev->dev.of_node,
"realtek,led-data", &led_data);

if (ret)
return ret;

RTL_W16(tp, CustomLED, led_data);

return 0;
}

static void
rtl8125_init_software_variable(struct net_device *dev)
{
Expand Down Expand Up @@ -14296,7 +14279,6 @@ rtl8125_init_software_variable(struct net_device *dev)
tp->rtl8125_rx_config &= ~EnableRxDescV4_1;

rtl8125_devname_configuration(tp);
rtl8125_led_configuration(tp);

tp->NicCustLedValue = RTL_R16(tp, CustomLED);

Expand Down

0 comments on commit 47b221f

Please sign in to comment.