]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: musb-new: Allow the diver not to use the set_phy_power() callback
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 4 Dec 2018 10:30:56 +0000 (11:30 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 14 Dec 2018 16:59:10 +0000 (17:59 +0100)
commit1594c75b3e285cac2ed19f958a0918ee677e4286
tree8948687432e8061cc9a3a743629ac6e378f7b9ef
parent2f829af946fae52854bf796f307e686c1efff6aa
usb: musb-new: Allow the diver not to use the set_phy_power() callback

The set_phy_power() callback is part of struct omap_musb_board_data. This
structure is part of the platform data passed to the musb-new driver. This
does not really fit with the Driver Model, so allow not to use struct
omap_musb_board_data to turn the phy on or off.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/usb/musb-new/am35x.c
drivers/usb/musb-new/musb_dsps.c