Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for upstream #364

Merged
merged 4 commits into from
Dec 5, 2018

Conversation

bardliao
Copy link
Collaborator

@bardliao bardliao commented Dec 4, 2018

The PR includes

  1. Remove redundant else
  2. Use device_get_match_data() instead of get id by acpi_match_device() and get dsec by id->driver_data.
  3. Use pcim_enable_device()
  4. Use devm_ioremap()

Fix #354 Fix #355 Fix #356

else is redundant after return in the if conduction.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Use device_get_match_data() instead of get id by acpi_match_device()
and get dsec by id->driver_data.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Use pcim_enable_device() and remove pci_disable_device().

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Replace ioremap with devm_ioremap and remove corresponding iounmap.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Copy link
Collaborator

@ranj063 ranj063 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @bardliao

@plbossart plbossart merged commit 2ebd0d2 into thesofproject:topic/sof-dev Dec 5, 2018
hli25 added a commit to hli25/linux-sof that referenced this pull request Aug 26, 2021
Fixed following WARNINGs:
for thesofproject#355, removed this unnecessary log print.
for thesofproject#364, added a variable to "struct es8316_priv", and tried to let
          function es8316_enable_jack_detect() align to mainline code.
for thesofproject#452, removed it since we did not verified the patch on other platform.

	WARNING: Unnecessary ftrace-like logging - prefer using ftrace
	thesofproject#355: FILE: sound/soc/codecs/es8316.c:751:
	+    dev_dbg(comp->dev, "Exit %s\n", __func__);

	ERROR: do not initialise statics to 0
	thesofproject#364: FILE: sound/soc/codecs/es8316.c:760:
	+    static int initial = 0;

	WARNING: DT compatible string "everest,es8336" appears un-documented -- check ./Documentation/devicetree/bindings/
	thesofproject#452: FILE: sound/soc/codecs/es8316.c:932:
	+    { .compatible = "everest,es8336", },

Signed-off-by: Huajun Li <huajun.li@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants