Är det möjligt att du tänker på Earthsea miniseries ?
Bolding min
In the land of Earthsea, a young wizard named Ged has visions about a girl and doors opening. Meanwhile, King Tygath wants to rule the land and release the Nameless Ones, demons from whom he hopes to learn the secret of immortality. He sends men to attack Ged's village, in search of the wizard of prophesy (Ged). Ged learns his first spell from an elderly woman. When the invasion comes, Ged uses a mist spell and lures the invaders over a cliff, saving the village. However, Ged also falls off the cliff.
....
A magus named Ogion arrives at Ged's village and revives Ged. He tells Ged his true name and takes him for training, but Ged is too impatient; he is sent to the magic school on Roke. There he meets the bully, Jasper, and befriends a student named Vetch. Ged shapeshifts into a hawk to show off. Jasper then challenges him to raise a spirit from the dead, leading him to accidentally release a Nameless One. The demon attacks Ged before being driven away by the Archmagus, who tells him that this Nameless One will hunt Ged down and try to possess him, using Ged's power for further destruction. Ged must go somewhere in hiding until he can find its true name and destroy it.
....
Vetch finds the tomb first and is taken by the Gebbeth. Ged encounters Tygath in the labyrinth and fights him but then escapes into the tomb. He encounters the Gebbeth and realizes its true name is his own, because it is the darkness in himself. The demon is absorbed into Ged, making him whole again and strengthening him to strike Tygath in the tomb. Tygath forces Tenar to release the Nameless Ones with the incantation. The Nameless Ones are released and take Tygath into the sky before flying off. Ged reveals part of the key is the second half of the amulet. The Amulet of Peace is made whole, dispelling the Nameless Ones with a bright light and restoring peace to Earthsea. Ged is seen victorious with Tenar and they kiss.
Officiell trailer