424-bcm63xx_enet_no_request_mem_region.patch 430 B

123456789101112131415
  1. --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  2. +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  3. @@ -2781,12 +2781,6 @@ static int bcm_enetsw_probe(struct platf
  4. if (ret)
  5. goto out;
  6. - if (!request_mem_region(res_mem->start, resource_size(res_mem),
  7. - "bcm63xx_enetsw")) {
  8. - ret = -EBUSY;
  9. - goto out;
  10. - }
  11. -
  12. priv->base = ioremap(res_mem->start, resource_size(res_mem));
  13. if (priv->base == NULL) {
  14. ret = -ENOMEM;