08 Jun, 2017

2 commits

  • When enabling CONFIG_DISPLAY_ROCKCHIP_HDMI, compile-time warning for
    the following implicitly defined functions are raised due to a missing
    include directive:

    drivers/video/rockchip/rk_hdmi.c: In function 'rk_hdmi_probe':
    drivers/video/rockchip/rk_hdmi.c:150:2: warning: implicit declaration of function 'rk_setreg' [-Wimplicit-function-declaration]
    rk_setreg(&priv->grf->soc_con6, 1 << 15);
    ^~~~~~~~~
    drivers/video/rockchip/rk_hdmi.c:153:2: warning: implicit declaration of function 'rk_clrsetreg' [-Wimplicit-function-declaration]
    rk_clrsetreg(&priv->grf->soc_con6, 1 << 4,
    ^~~~~~~~~~~~

    This change fixes this by including in rk_hdmi.c.

    Signed-off-by: Philipp Tomsich
    Acked-by: Simon Glass

    Philipp Tomsich
     
  • The usb_gadget_handle_interrupts()-function is already implemented by
    drivers/usb/gadget/dwc2_udc_otg.c, so we need to avoid defining it
    in the evb-rk3328.c board-specific file.

    This change fixes the following build error (from buildman):
    drivers/usb/gadget/built-in.o: In function `usb_gadget_handle_interrupts':
    build/../drivers/usb/gadget/dwc2_udc_otg.c:850: multiple definition of `usb_gadget_handle_interrupts'
    board/rockchip/evb_rk3328/built-in.o:build/../board/rockchip/evb_rk3328/evb-rk3328.c:37: first defined here
    make[1]: *** [u-boot] Error 1

    Signed-off-by: Philipp Tomsich
    Acked-by: Simon Glass

    Philipp Tomsich
     

07 Jun, 2017

38 commits