Actor Eric Dane has settled a long-running legal battle with his rock star neighbour Billy Corgan just days before the case was due to go to court.

The Grey's Anatomy star filed a lawsuit in 2012 after a tree at the Smashing Pumpkins star's home crashed onto Dane's property during a severe storm and injured his then-pregnant wife Rebecca Gayheart.

Dane claims Corgan ignored warnings about the tree before the incident. He also accused the rocker of refusing to trim or remove several other potentially dangerous trees.

The trial was due to begin on Monday (20Oct14) at Los Angeles County Superior Court but they finally reached a settlement last week (ends19Oct14).

According to Tmz.com, Corgan has agreed to cut the other offending trees down to a stump.