Skip to content

Commit

Permalink
devres: Fix internal server error
Browse files Browse the repository at this point in the history
Fix internal server error, which states:
"Language `c{[...]}` not found, you may need to load it first".
This was caused by some missing spaces in the code snippets between the
language (`c`) and the specific lines to highlight after each click
(`{[...]}`).

Signed-off-by: Patrick Barsanti <[email protected]>
  • Loading branch information
patriickoo authored and panicking committed Jun 5, 2024
1 parent 6df41b7 commit 2b9f28d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/base/devres.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ layout: default
---
# Example usage - devres destroy, remove
```c{all|5}
```c {all|5}
void devm_usb_put_phy(struct device *dev, struct usb_phy *phy)
{
int r;
Expand All @@ -518,7 +518,7 @@ void devm_usb_put_phy(struct device *dev, struct usb_phy *phy)

# Devres destroy

```c{all|6}
```c {all|6}
int devres_destroy(struct device *dev, dr_release_t release,
dr_match_t match, void *match_data)
{
Expand All @@ -544,7 +544,7 @@ hideInToc: true
# Devres remove
```c{all|7|13|8|10}
```c {all|7|13|8|10}
void * devres_remove(struct device *dev, dr_release_t release,
dr_match_t match, void *match_data)
{
Expand Down Expand Up @@ -636,7 +636,7 @@ layout: default

Grouping example from devres.rst:

```c{all|1}
```c {all|1}
if (!devres_open_group(dev, NULL, GFP_KERNEL))
return -ENOMEM;

Expand Down Expand Up @@ -709,7 +709,7 @@ hideInToc: true

Grouping example from devres.rst:

```c{all|13}
```c {all|13}
if (!devres_open_group(dev, NULL, GFP_KERNEL))
return -ENOMEM;

Expand Down Expand Up @@ -768,7 +768,7 @@ hideInToc: true

Grouping example from devres.rst:

```c{all|17}
```c {all|17}
if (!devres_open_group(dev, NULL, GFP_KERNEL))
return -ENOMEM;

Expand Down

0 comments on commit 2b9f28d

Please sign in to comment.