Kubelet failing after upgrade to v1.24.1

Cluster information: 4 node cluster with 3 master and 1 worker

Kubernetes version: v1.23.7
Cloud being used: bare-metal
Installation method: kubeadm
Host OS: CentOS7
CNI and version: calico v3.14
CRI and version: dockershim

Hi team,
kubernetes upgrade from v1.23.7 to v1.24.1 went fine but then after upgrading the kubelet it is failing to start.
Do we need to change anything in kubelet config as i compared the config file with other nodes and it is similar. I’m not finding anything in the logs as well apart from “Flag --cgroup-driver has been deprecated, This parameter should be set via the config file specified by the Kubelet”

Also do we need to migrate dockershim before the upgrade or migration after upgrade is fine. Is it causing the issue?

Thanks