[PATCH RESEND 2/2] drivers: base: Add basic devm tests for platform devices