Setting pointer to device to 0