tee: optee: don't fail probe because of optee-rng
Fixes optee-rng driver bind sequence in optee driver to print a warning message but not report an error status when a optee-rng service driver fails to be bound as the optee driver itself is still fully functional. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
		
							parent
							
								
									1154e965d0
								
							
						
					
					
						commit
						476a3d58df
					
				|  | @ -834,7 +834,7 @@ static int optee_probe(struct udevice *dev) | ||||||
| 		 */ | 		 */ | ||||||
| 		ret = device_bind_driver(dev, "optee-rng", "optee-rng", NULL); | 		ret = device_bind_driver(dev, "optee-rng", "optee-rng", NULL); | ||||||
| 		if (ret) | 		if (ret) | ||||||
| 			return ret; | 			dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return 0; | 	return 0; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue