mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 04:25:27 +08:00
76eff170bb
In device tree environment, the previous code allocates renesas_usbhs_platform_info by using devm_kzalloc() and then copies usbhs_of_data to the allocated memory. This reason is some values (e.g. .platform_callback.get_vbus) are overwritten by the driver, but the of_device_id.data is "const". Now the driver doesn't have such a code, so this patch uses renesas_usbhs_platform_info on of_device_id.data. Note that the previous code set the pdev->dev.platform_data pointer even if device tree environment, but the value is not used. So, this patch also remove such a code. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 lines
221 B
C
7 lines
221 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include "common.h"
|
|
|
|
extern const struct renesas_usbhs_platform_info usbhs_rcar_gen3_plat_info;
|
|
extern const struct renesas_usbhs_platform_info
|
|
usbhs_rcar_gen3_with_pll_plat_info;
|