Magneto-electronic properties of graphene nanoribbons with various edge structures passivated by P and H is studied. It shows that if the edge of GNRs is a mixture of zigzag edge and reconstructed Klein edge, they are nonmagnetic for H passivation but obviously magnetic for P passivation.