bus/fslmc: remove unneeded strdup
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 12 Mar 2019 17:11:52 +0000 (10:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Mar 2019 12:55:58 +0000 (13:55 +0100)
commit4764beda0daab873adec4fa0bbe65cc099689c2c
tree320c260ab3c7d9455f53d70500ad57d4bf272c8e
parenta6ffe11b7245ec12d4df4b8b0577291604b5e082
bus/fslmc: remove unneeded strdup

The fslmc bus code was duplicating the device name and
doing extra initialization. The code can be simplified
to just use the device name directly.

Compile tested only; do not have this hardware.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/fslmc/fslmc_bus.c