Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63368
b: refs/heads/master
c: 86d0004
h: refs/heads/master
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Linus Torvalds committed Jul 31, 2007
1 parent 492f465 commit 5334153
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd22a68228cf1c8dad39d6f9da925bd534aea91d
refs/heads/master: 86d0004abc87025bae1cca43c94e99a27b7bbbd6
14 changes: 6 additions & 8 deletions trunk/drivers/serial/sb1250-duart.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SUPPORT_SYSRQ
#endif

#include <linux/compiler.h>
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/errno.h>
Expand Down Expand Up @@ -103,8 +104,6 @@ struct sbd_duart {

static struct sbd_duart sbd_duarts[DUART_MAX_CHIP];

#define __unused __attribute__((__unused__))


/*
* Reading and writing SB1250 DUART registers.
Expand Down Expand Up @@ -204,12 +203,12 @@ static int sbd_receive_drain(struct sbd_port *sport)
return loops;
}

static int __unused sbd_transmit_ready(struct sbd_port *sport)
static int __maybe_unused sbd_transmit_ready(struct sbd_port *sport)
{
return read_sbdchn(sport, R_DUART_STATUS) & M_DUART_TX_RDY;
}

static int __unused sbd_transmit_drain(struct sbd_port *sport)
static int __maybe_unused sbd_transmit_drain(struct sbd_port *sport)
{
int loops = 10000;

Expand Down Expand Up @@ -664,7 +663,7 @@ static void sbd_release_port(struct uart_port *uport)

static int sbd_map_port(struct uart_port *uport)
{
static const char *err = KERN_ERR "sbd: Cannot map MMIO\n";
const char *err = KERN_ERR "sbd: Cannot map MMIO\n";
struct sbd_port *sport = to_sport(uport);
struct sbd_duart *duart = sport->duart;

Expand All @@ -691,8 +690,7 @@ static int sbd_map_port(struct uart_port *uport)

static int sbd_request_port(struct uart_port *uport)
{
static const char *err = KERN_ERR
"sbd: Unable to reserve MMIO resource\n";
const char *err = KERN_ERR "sbd: Unable to reserve MMIO resource\n";
struct sbd_duart *duart = to_sport(uport)->duart;
int map_guard;
int ret = 0;
Expand Down Expand Up @@ -755,7 +753,7 @@ static int sbd_verify_port(struct uart_port *uport, struct serial_struct *ser)
}


static struct uart_ops sbd_ops = {
static const struct uart_ops sbd_ops = {
.tx_empty = sbd_tx_empty,
.set_mctrl = sbd_set_mctrl,
.get_mctrl = sbd_get_mctrl,
Expand Down

0 comments on commit 5334153

Please sign in to comment.