Barcelona coach Hansi Flick delivered a second straight La Liga title with a 2-0 win over Real Madrid hours after learning of his father's death.