@@ -95,7 +95,7 @@ static int apb_cold_boot(struct device *dev, void *data)
9595
9696 ret = apb_ctrl_coldboot (dev );
9797 if (ret )
98- dev_warn (dev , "Failed to coldboot\n" );
98+ dev_warn (dev , "failed to coldboot\n" );
9999
100100 /*Child nodes are independent, so do not exit coldboot operation */
101101 return 0 ;
@@ -107,7 +107,7 @@ static int apb_poweroff(struct device *dev, void *data)
107107
108108 /* Enable HUB3613 into HUB mode. */
109109 if (usb3613_hub_mode_ctrl (false))
110- dev_warn (dev , "Failed to control hub device\n" );
110+ dev_warn (dev , "failed to control hub device\n" );
111111
112112 return 0 ;
113113}
@@ -142,7 +142,7 @@ static irqreturn_t arche_platform_wd_irq_thread(int irq, void *devid)
142142
143143 /* Enable HUB3613 into HUB mode. */
144144 if (usb3613_hub_mode_ctrl (true))
145- dev_warn (arche_pdata -> dev , "Failed to control hub device\n" );
145+ dev_warn (arche_pdata -> dev , "failed to control hub device\n" );
146146
147147 spin_lock_irqsave (& arche_pdata -> wake_lock , flags );
148148 arche_platform_set_wake_detect_state (arche_pdata , WD_STATE_IDLE );
@@ -228,12 +228,12 @@ arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdata)
228228
229229 ret = clk_prepare_enable (arche_pdata -> svc_ref_clk );
230230 if (ret ) {
231- dev_err (arche_pdata -> dev , "Failed to enable svc_ref_clk: %d\n" ,
231+ dev_err (arche_pdata -> dev , "failed to enable svc_ref_clk: %d\n" ,
232232 ret );
233233 return ret ;
234234 }
235235
236- /* Bring SVC out of reset */
236+ /* bring SVC out of reset */
237237 svc_reset_onoff (arche_pdata -> svc_reset , !arche_pdata -> is_reset_act_hi );
238238
239239 arche_platform_set_state (arche_pdata , ARCHE_PLATFORM_STATE_ACTIVE );
@@ -262,7 +262,7 @@ arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_pdata)
262262
263263 ret = clk_prepare_enable (arche_pdata -> svc_ref_clk );
264264 if (ret ) {
265- dev_err (arche_pdata -> dev , "Failed to enable svc_ref_clk: %d\n" ,
265+ dev_err (arche_pdata -> dev , "failed to enable svc_ref_clk: %d\n" ,
266266 ret );
267267 return ret ;
268268 }
@@ -340,7 +340,7 @@ static ssize_t state_store(struct device *dev,
340340 if (arche_pdata -> state == ARCHE_PLATFORM_STATE_STANDBY )
341341 goto exit ;
342342
343- dev_warn (arche_pdata -> dev , "Standby state not supported\n" );
343+ dev_warn (arche_pdata -> dev , "standby state not supported\n" );
344344 } else if (sysfs_streq (buf , "fw_flashing" )) {
345345 if (arche_pdata -> state == ARCHE_PLATFORM_STATE_FW_FLASHING )
346346 goto exit ;
@@ -358,7 +358,7 @@ static ssize_t state_store(struct device *dev,
358358 if (ret )
359359 goto exit ;
360360 } else {
361- dev_err (arche_pdata -> dev , "Unknown state\n" );
361+ dev_err (arche_pdata -> dev , "unknown state\n" );
362362 ret = - EINVAL ;
363363 }
364364
@@ -434,7 +434,7 @@ static int arche_platform_probe(struct platform_device *pdev)
434434 if (!arche_pdata )
435435 return - ENOMEM ;
436436
437- /* Setup svc reset gpio */
437+ /* setup svc reset gpio */
438438 arche_pdata -> is_reset_act_hi = of_property_read_bool (np ,
439439 "svc,reset-active-high" );
440440 if (arche_pdata -> is_reset_act_hi )
@@ -445,7 +445,7 @@ static int arche_platform_probe(struct platform_device *pdev)
445445 arche_pdata -> svc_reset = devm_gpiod_get (dev , "svc,reset" , flags );
446446 if (IS_ERR (arche_pdata -> svc_reset )) {
447447 ret = PTR_ERR (arche_pdata -> svc_reset );
448- dev_err (dev , "Failed to request svc-reset GPIO: %d\n" , ret );
448+ dev_err (dev , "failed to request svc-reset GPIO: %d\n" , ret );
449449 return ret ;
450450 }
451451 arche_platform_set_state (arche_pdata , ARCHE_PLATFORM_STATE_OFF );
@@ -454,24 +454,24 @@ static int arche_platform_probe(struct platform_device *pdev)
454454 GPIOD_OUT_LOW );
455455 if (IS_ERR (arche_pdata -> svc_sysboot )) {
456456 ret = PTR_ERR (arche_pdata -> svc_sysboot );
457- dev_err (dev , "Failed to request sysboot0 GPIO: %d\n" , ret );
457+ dev_err (dev , "failed to request sysboot0 GPIO: %d\n" , ret );
458458 return ret ;
459459 }
460460
461- /* Setup the clock request gpio first */
461+ /* setup the clock request gpio first */
462462 arche_pdata -> svc_refclk_req = devm_gpiod_get (dev , "svc,refclk-req" ,
463463 GPIOD_IN );
464464 if (IS_ERR (arche_pdata -> svc_refclk_req )) {
465465 ret = PTR_ERR (arche_pdata -> svc_refclk_req );
466- dev_err (dev , "Failed to request svc-clk-req GPIO: %d\n" , ret );
466+ dev_err (dev , "failed to request svc-clk-req GPIO: %d\n" , ret );
467467 return ret ;
468468 }
469469
470470 /* setup refclk2 to follow the pin */
471471 arche_pdata -> svc_ref_clk = devm_clk_get (dev , "svc_ref_clk" );
472472 if (IS_ERR (arche_pdata -> svc_ref_clk )) {
473473 ret = PTR_ERR (arche_pdata -> svc_ref_clk );
474- dev_err (dev , "Failed to get svc_ref_clk: %d\n" , ret );
474+ dev_err (dev , "failed to get svc_ref_clk: %d\n" , ret );
475475 return ret ;
476476 }
477477
@@ -504,28 +504,28 @@ static int arche_platform_probe(struct platform_device *pdev)
504504 IRQF_TRIGGER_RISING | IRQF_ONESHOT ,
505505 dev_name (dev ), arche_pdata );
506506 if (ret ) {
507- dev_err (dev , "Failed to request wake detect IRQ %d\n" , ret );
507+ dev_err (dev , "failed to request wake detect IRQ %d\n" , ret );
508508 return ret ;
509509 }
510510 disable_irq (arche_pdata -> wake_detect_irq );
511511
512512 ret = device_create_file (dev , & dev_attr_state );
513513 if (ret ) {
514- dev_err (dev , "Failed to create state file in sysfs\n" );
514+ dev_err (dev , "failed to create state file in sysfs\n" );
515515 return ret ;
516516 }
517517
518518 ret = of_platform_populate (np , NULL , NULL , dev );
519519 if (ret ) {
520- dev_err (dev , "Failed to populate child nodes %d\n" , ret );
520+ dev_err (dev , "failed to populate child nodes %d\n" , ret );
521521 goto err_device_remove ;
522522 }
523523
524524 arche_pdata -> pm_notifier .notifier_call = arche_platform_pm_notifier ;
525525 ret = register_pm_notifier (& arche_pdata -> pm_notifier );
526526
527527 if (ret ) {
528- dev_err (dev , "Failed to register pm notifier %d\n" , ret );
528+ dev_err (dev , "failed to register pm notifier %d\n" , ret );
529529 goto err_device_remove ;
530530 }
531531
@@ -570,7 +570,7 @@ static void arche_platform_remove(struct platform_device *pdev)
570570 arche_platform_poweroff_seq (arche_pdata );
571571
572572 if (usb3613_hub_mode_ctrl (false))
573- dev_warn (arche_pdata -> dev , "Failed to control hub device\n" );
573+ dev_warn (arche_pdata -> dev , "failed to control hub device\n" );
574574}
575575
576576static __maybe_unused int arche_platform_suspend (struct device * dev )
0 commit comments