@@ -1919,10 +1919,9 @@ static int hdmi_get_ddc_adapter(struct hdmi_context *hdata)
19191919static int hdmi_get_phy_io (struct hdmi_context * hdata )
19201920{
19211921 const char * compatible_str = "samsung,exynos4212-hdmiphy" ;
1922- struct device_node * np ;
1923- int ret = 0 ;
1922+ struct device_node * np __free ( device_node ) =
1923+ of_find_compatible_node ( NULL , NULL , compatible_str ) ;
19241924
1925- np = of_find_compatible_node (NULL , NULL , compatible_str );
19261925 if (!np ) {
19271926 np = of_parse_phandle (hdata -> dev -> of_node , "phy" , 0 );
19281927 if (!np ) {
@@ -1937,21 +1936,17 @@ static int hdmi_get_phy_io(struct hdmi_context *hdata)
19371936 if (!hdata -> regs_hdmiphy ) {
19381937 DRM_DEV_ERROR (hdata -> dev ,
19391938 "failed to ioremap hdmi phy\n" );
1940- ret = - ENOMEM ;
1941- goto out ;
1939+ return - ENOMEM ;
19421940 }
19431941 } else {
19441942 hdata -> hdmiphy_port = of_find_i2c_device_by_node (np );
19451943 if (!hdata -> hdmiphy_port ) {
19461944 DRM_INFO ("Failed to get hdmi phy i2c client\n" );
1947- ret = - EPROBE_DEFER ;
1948- goto out ;
1945+ return - EPROBE_DEFER ;
19491946 }
19501947 }
19511948
1952- out :
1953- of_node_put (np );
1954- return ret ;
1949+ return 0 ;
19551950}
19561951
19571952static int hdmi_probe (struct platform_device * pdev )
@@ -2126,7 +2121,6 @@ struct platform_driver hdmi_driver = {
21262121 .remove_new = hdmi_remove ,
21272122 .driver = {
21282123 .name = "exynos-hdmi" ,
2129- .owner = THIS_MODULE ,
21302124 .pm = & exynos_hdmi_pm_ops ,
21312125 .of_match_table = hdmi_match_types ,
21322126 },
0 commit comments