It is shown that if the ring of constants of a restricted differential Lie algebra with a quasi-Frobenius inner part satisfies a polynomial identity (PI) then the original prime ring has a generalized polynomial identity (GPI). If additionally the ring of constants is semiprime then the original ring is PI. The case of a non-quasi-Frobenius inner part is also considered.