Bernier had been stuck behind Jonathan Quick in Los Angeles. The Maple Leafs, according to general manager Dave Nonis, were interested in upgrades at any position.

“I think it’s incumbent upon every team to look at what’s available and if there is an ability to improve you look to do it,” Nonis said last week after the GM’s meetings in Boston.

Toronto gave up forward Matt Frattin, backup goaltender Ben Scrivens and a second-round pick in the 2014 or 2015 NHL entry draft.

The 24-year-old Bernier is eligible to become a restricted free agent. He played in 14 regular-season games for the Kings in 2012-13, compiling a 9-3-1 record with a goals-against average of 1.88 and save percentage of .922.

Kings assistant GM Ron Hextall said the deal had been “ongoing for months.”

“It’s kind of bittersweet. Jon’s been with us a long time. He’s been a great soldier for us and he’s been a very good player for us,” Hextall said in a video on the Kings’ website.

“Unfortunately, he’s stuck behind Jonathan Quick, which is a tough situation for Jon. As a sense of fairness to him and at the timing that we felt was the best for the organization, we made the move.”

Referee admits mistake in Confederations Cup

RIO DE JANEIRO — FIFA says the referee who awarded Italy a goal after first whistling for a penalty in Saturday’s match against Brazil acknowledges making the wrong call.

Referee Ravshan Irmatov blew his whistle to award Italy a penalty. Moments later, as play continued, Giorgio Chiellini scored. Irmatov was seen pointing at the penalty spot and then giving a goal.

FIFA spokesman Pekka Odriozola said: “He has admitted he made a mistake.”

Irmatov is a widely respected referee from Uzbekistan who had been expected to have a chance to referee the Confederations Cup final. Now he is expected to be sent home with his assistants, who also made two key errors in Saturday’s game.