[FE training-materials-updates] platform_add_device() no longer exists

Michael Opdenacker michael.opdenacker at free-electrons.com
Fri Mar 10 13:48:23 CET 2017


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=e5c1074daf2b52d2e0b1007d9b8dbf84008f6ff9

>---------------------------------------------------------------

commit e5c1074daf2b52d2e0b1007d9b8dbf84008f6ff9
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Fri Mar 10 13:48:23 2017 +0100

    platform_add_device() no longer exists
    
    - Should use platform_add_devices()
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

e5c1074daf2b52d2e0b1007d9b8dbf84008f6ff9
 slides/kernel-device-model/kernel-device-model.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slides/kernel-device-model/kernel-device-model.tex b/slides/kernel-device-model/kernel-device-model.tex
index 3ee50c4..f0eba69 100644
--- a/slides/kernel-device-model/kernel-device-model.tex
+++ b/slides/kernel-device-model/kernel-device-model.tex
@@ -463,7 +463,7 @@ static struct resource imx_uart1_resources[] = {
   \frametitle{Using Resources (old style)}
   \begin{itemize}
   \item When a \kstruct{platform_device} was added to the system using
-    \kfunc{platform_add_device}, the \code{probe()} method of the
+    \kfunc{platform_add_devices}, the \code{probe()} method of the
     platform driver was called
   \item This method is responsible for initializing the hardware,
     registering the device to the proper framework (in our case, the




More information about the training-materials-updates mailing list